led blinks
Geojr
Posts: 5
I turn on a led through the controler and it blinks. Does anyone no why?
·
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Mega
Want to know how to build your own robot?
www.societyofrobots.com
Need good forums for things other than programming?
http://www.societyofrobots.com/robotforum/index.php
Post Edited (Megaman935) : 7/23/2007 3:26:32 PM GMT
' {$PBASIC 2.5}
DEBUG "Program running", CR
HIGH 8
END
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Mega
Want to know how to build your own robot?
www.societyofrobots.com
Need good forums for things other than programming?
http://www.societyofrobots.com/robotforum/index.php
Post Edited (Megaman935) : 7/23/2007 3:26:25 PM GMT
Just as with the SLEEP command, pins will retain their input or output settings after the BASIC Stamp is deactivated by END. For example, if the BASIC Stamp is powering an LED when END executes, the LED will stay lit after END, but every 2.3 seconds, there will be a visible wink of the LED as the output pin switches to the input direction for 18 ms.
Update -- If you just want to turn the LED on and then leave it at that (and I won't ask why), then just lose END.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Mega
Want to know how to build your own robot?
www.societyofrobots.com
Need good forums for things other than programming?
http://www.societyofrobots.com/robotforum/index.php
Post Edited (Megaman935) : 7/23/2007 3:26:17 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Mega
Want to know how to build your own robot?
www.societyofrobots.com
Need good forums for things other than programming?
http://www.societyofrobots.com/robotforum/index.php
Post Edited (Megaman935) : 7/23/2007 3:26:10 PM GMT
You can also use the STOP command.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔