Let's Make Robots!

need BASIC debugging???

could someone debug this please?

 

main

HIGH 1500

PAUSE

LOW 1500

GOTO main

' {$STAMP BS1}

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

 
which will make the PIN1 go from low to high, wait 1.5sec, go high to low, wait 1.5sec... then loop forever 

 

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