Shop OBEX P1 Docs P2 Docs Learn Events
Same problem — Parallax Forums

Same problem

Bibliophile6Bibliophile6 Posts: 9
edited 2007-02-13 20:53 in BASIC Stamp
I copied it word for word, why do I get the "Expected label" error!?





' {$STAMP BS2}
' What's a Microcontroller - PushbuttonControlledLed.bs2
' Check pushbutton state 10 times per second and blink LED when pressed.

' {PBASIC 2.5}
DO
· DEBUG HOME
· DEBUG ? IN4
· DEBUG ? IN3
IF (IN3 = 1) THEN
··· HIGH 14
··· PAUSE 50
ELSEIF (IN4 =1) THEN
··· HIGH 15
··· PAUSE 50
· ELSE
··· PAUSE 50
· ENDIF
· LOW 14
· LOW 15
· PAUSE 50
LOOP

Comments

Sign In or Register to comment.