|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|