could someone debug this please?
main
HIGH 1500
PAUSE
LOW 1500
GOTO main
' {$STAMP BS1}
could someone debug this please?
main
HIGH 1500
PAUSE
LOW 1500
GOTO main
' {$STAMP BS1}
the ’ {$STAMP BS1} has to
the ’ {$STAMP BS1} has to be the first line of any code, to specify which platform you are running on
your “main” has to be "main:"
the HIGH and LOW accepts a PIN number… 1500 is NOT a pin.
PAUSE needs a delay… in ms.
your code should be
’ {$STAMP BS1}
main:
HIGH 1
PAUSE 1500
LOW 1
PAUSE 1500
GOTO main
If I were you, I would really start with reading this book :
http://www.parallax.com/Portals/0/Downloads/docs/books/edu/Roboticsv2_2.pdf