Пример #1
0
        /// <summary>
        /// Gets the integration time of the sensor.
        /// </summary>
        public RgbColorSensorIntegrationTime GetIntegrationTime()
        {
            byte control = Read8(REGISTER_ATIME);
            RgbColorSensorIntegrationTime result = (RgbColorSensorIntegrationTime)control;

            return(result);
        }
Пример #2
0
 /// <summary>
 /// Sets the integration time of the sensor.
 /// </summary>
 public void SetIntegrationTime(RgbColorSensorIntegrationTime value)
 {
     _integrationTime = value;
     Write8(REGISTER_ATIME, (byte)value);
 }