Exemple #1
0
        /// <summary>
        /// Gets the gain of the sensor.
        /// </summary>
        public RgbColorSensorGain GetGain()
        {
            byte control = Read8(REGISTER_CONTROL);
            RgbColorSensorGain result = (RgbColorSensorGain)control;

            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Sets the gain of the sensor.
 /// </summary>
 public void SetGain(RgbColorSensorGain value)
 {
     Write8(REGISTER_CONTROL, (byte)value);
 }