| | Light Sensors
|
| I've just started using NQC, and I seem to have developed a bit of an unusual problem. The little red LED's on my light sensors no longer turn on when connected to the RCX. They still work if I plug them into my Control Lab (The computer linked (...) (25 years ago, 7-May-00, to lugnet.robotics)
| | | | Re: Light Sensors
|
| Hey Grant, I found a few problems in your code. Change the #ifdef block to be #ifdef __RCX SetSensor(SENSOR_1, SENSOR_LIGHT); // SENSOR_TYPE_LIGHT isnt a valid type for SetSensor you need to USE SENSOR_LIGHT ( check the NQC documentation for types) (...) (25 years ago, 7-May-00, to lugnet.robotics)
| |