NXT-G : Reading 2.0 Color-Sensor in Light-Mode

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
klamm
Posts: 2
Joined: 16 Jan 2011, 12:10

NXT-G : Reading 2.0 Color-Sensor in Light-Mode

Post by klamm »

A (simple) question:

I have the NXT 2.0 color-sensor and use it in light-sensor-mode.
Image

I want to save the ambient light value to a variable.
How can I read the light value (1-100) out of the sensor? Or isnt' it possible width NXT-G?
Image

(I want to store the ambient light and periodically check for a diff>x ... then do something.)
klamm
Posts: 2
Joined: 16 Jan 2011, 12:10

Re: NXT-G : Reading 2.0 Color-Sensor in Light-Mode

Post by klamm »

Got it ... the light intensity is outputted as "recognized color" :roll:
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests