Easy goto question!
BubbaJoeLouis
Posts: 3
Greetings,
Sorry to ask a basic basic stamp question, but why does my goto not work unless I have a debug statement?
' {$STAMP BS2}
OUTPUT 7
beginagain:
DEBUG CLS
TOGGLE 7
PAUSE 200
GOTO beginagain
Causes my LED to blink whereas without the clearscreen command:
' {$STAMP BS2}
OUTPUT 7
beginagain:
TOGGLE 7
PAUSE 200
GOTO beginagain
Does nothing. Some info:
Parallax Editor version 2.1
Basic Stamp 2 version 1.0
Thank you!
BJL
Sorry to ask a basic basic stamp question, but why does my goto not work unless I have a debug statement?
' {$STAMP BS2}
OUTPUT 7
beginagain:
DEBUG CLS
TOGGLE 7
PAUSE 200
GOTO beginagain
Causes my LED to blink whereas without the clearscreen command:
' {$STAMP BS2}
OUTPUT 7
beginagain:
TOGGLE 7
PAUSE 200
GOTO beginagain
Does nothing. Some info:
Parallax Editor version 2.1
Basic Stamp 2 version 1.0
Thank you!
BJL
Comments
' {$STAMP BS2}
' {$PBASIC 2.5}
OUTPUT 7
DO
TOGGLE 7
PAUSE 200
LOOP
END
' {$STAMP BS2}
' {$PBASIC 2.5}
OUTPUT 7
DO
DEBUG CLS
TOGGLE 7
PAUSE 200
LOOP
END
is required to actually get a blink.
' {$STAMP BS2}
' {$PBASIC 2.5}
OUTPUT 7
DO
TOGGLE 7
PAUSE 200
LOOP
END
Does nothing. Also, it doesnt matter if I DEBUG CLS or DEBUG "Yo" it will work. But no debug, no service.
If you are using a laptop, this thread covered this as well...
http://forums.parallax.com./forums/default.aspx?f=5&m=55209
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--==<{Chris}>==--
Post Edited (Chris Savage) : 2/22/2005 2:26:21 AM GMT
Thanks for being my GOTO guy!
BJL
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--==<{Chris}>==--