|
Re: Photo Switch!
You should replace the line:
if(lightsensor.getAnalogTriggerForRouting() == false) {
with
if(lightsensor.get() == false) {
getAnalogTriggerForRouting() is not what you want to use to get the value of a digital input. The get method returns whether or not it is actually triggered.
|