To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 11453
  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)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR