(...) I think SensorValueRaw(2) should do what you want. I wrote a little test program: ---- int x, y; task main() { y = 0; while(true) { x = SensorValueRaw(2); if (x > (y + 10)) PlaySound(SOUND_CLICK); y = x; } } ---- and it seems to click a lot as (...) (23 years ago, 18-Jul-01, to lugnet.robotics.scout)
You are right! I got the raw value of light sensor by SensorValueRaw(2) in Scout. By the way, I found the max raw value of Touch sensor is 255 in Scout, not 1023. Zhengrong (...) (23 years ago, 18-Jul-01, to lugnet.robotics.scout)