Getting Started
I2C Mode (Default)
The sensor works out of the box as an I2C color sensor, and it will emulate the behavior of the Rev Color Sensor V3. To read data via I2C, simply plug the sensor into an I2C port on the hub using a standard sensor wire and configure it as a "Rev Color Sensor V3." The code to read it will be the same as reading a normal color sensor.
A standard I2C read on the control hub will take upwards of 4 milliseconds. The Color Rangefinder supports I2C fast mode, which can improve this time slightly. In order to use I2C fast mode, there are some extra steps we have to take:
While fast mode will offer a marginal improvement over standard I2C, taking advantage of the configurability of this sensor will allow you to receive data over the much faster digital and analog ports.
Last updated