Whats wrong with this code?
jaeg
Posts: 156
I just started with the basic stamp 1 and I decided to make a simple little circuit that lights up a led when the senser detects what it is suposed to detect.· Right now I have it hooked up to a cds cell for the sensor.· But it is not working.· I now the setup is ok but the code doesn't seem to go to the section.·
Here is the code:
' {$STAMP BS1}
' {$PBASIC 1.0}
main:
DEBUG "main"
· IF PIN1 =·1 THEN led
GOTO main
led:
DEBUG "led"
PULSOUT 0, 100
GOTO main
Why is it not working?
Here is the code:
' {$STAMP BS1}
' {$PBASIC 1.0}
main:
DEBUG "main"
· IF PIN1 =·1 THEN led
GOTO main
led:
DEBUG "led"
PULSOUT 0, 100
GOTO main
Why is it not working?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com