Skip to main content

Resolving issues with RGB color sensors

No replies
User offline. Last seen 1 year 42 weeks ago. Offline
Joined: 03/31/2011

You might have trouble using the ColorLightSensor class with these sensors. The different LEDs light up and are fully controlable, but it's impossible for the sensor to make readings: you get a "-1" error value from your reading or the program stops at the reading instruction). The problem lies in some classes (SensorPort.class; ColorLightSensor.class) of the classes.jar.

To resolve the issue, you need to use .zip attached, ( unzip and rename it classes.jar) it has a modified version of SensorPort and ColorLightSensor. You'll be able to make reading with your sensor then.

File attachments: