When trying to detect color of "emitted" light (not reflected light), turn off the LED via colorSensor.enableLed(false).

When trying to detect reflected light such as line following, turn on the LED.

There is an OpMode example called MRRGBExample.

 

Go to Top