DO LOOP Doesn't LOOP
Cpuguru
Posts: 3
Weird problem - my son and I are going through the Robotics with the Boe-Bot manual and in Chapter 2, Pg 45, the very simple program says to:
' Robotics with the Boe-Bot - HelloOnceEverySecond.bs2
' Display a message every second
' {$STAMP BS2}
' ($PBASIC 2.5}
DO
· DEBUG "Hello!", CR
· PAUSE 1000
LOOP
However, the program doesn't loop.· It prints "Hello!" once and then stops.· It doesn't continue printing "Hello!" every second like one would expect.
This is running against a Basic Stamp 2 v 1.0.
I've triple checked the syntax and it SHOULD work.
Any thoughts as to why we're getting stumped so soon into the chapter ;?)
Thx,
Doug
·
' Robotics with the Boe-Bot - HelloOnceEverySecond.bs2
' Display a message every second
' {$STAMP BS2}
' ($PBASIC 2.5}
DO
· DEBUG "Hello!", CR
· PAUSE 1000
LOOP
However, the program doesn't loop.· It prints "Hello!" once and then stops.· It doesn't continue printing "Hello!" every second like one would expect.
This is running against a Basic Stamp 2 v 1.0.
I've triple checked the syntax and it SHOULD work.
Any thoughts as to why we're getting stumped so soon into the chapter ;?)
Thx,
Doug
·
Comments
·($PBASIC 2.5}
Jeff T.
I can't believe I did a boneheaded typo that soon into the manual .
Doug
ther
Jeff T.