Skip to content

Color Sensor Settings

The integration period of the sensor is how long it reads light for.

The sensor operates similarly to a camera, detecting light that hits the sensor over a given period of time. Therefore, the integration period is similar to exposure time.

Longer integration times will be slightly more stable and have slightly longer range, at the tradeoff of slower reads. The default of 25ms is generally a good tradeoff between stability and speed.

//Sets the integration period to 25 ms
settings.setColorIntegrationPeriod(ColorPeriod.k25ms);