Error 129: Expected ":" or end-of-file
Garcia
Posts: 5
Hello everyone.
I'm working on my first program and already getting an error. Here is my program:
' {$STAMP BS2}
' {$PBASIC 2.0}
AlarmLed·· PIN· 0····· 'LED on P0
FlashTm··· CON· 500···· 'delay 500 milliseconds
Main:
HIGH AlarmLed············· 'turn LED ON
PAUSE FlashTm
LOW AlarmLed·············· 'turn LED OFF
PAUSE FlashTm
GOTO Main
I'm getting thie error message: Error 129: Expected ":" or end-of-file
Can anyone help.
Thanks in advance
JRG
[noparse][[/noparse]Subject added by Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 2/28/2007 3:19:34 PM GMT
I'm working on my first program and already getting an error. Here is my program:
' {$STAMP BS2}
' {$PBASIC 2.0}
AlarmLed·· PIN· 0····· 'LED on P0
FlashTm··· CON· 500···· 'delay 500 milliseconds
Main:
HIGH AlarmLed············· 'turn LED ON
PAUSE FlashTm
LOW AlarmLed·············· 'turn LED OFF
PAUSE FlashTm
GOTO Main
I'm getting thie error message: Error 129: Expected ":" or end-of-file
Can anyone help.
Thanks in advance
JRG
[noparse][[/noparse]Subject added by Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 2/28/2007 3:19:34 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
As was suggested before, change:
' {$PBASIC 2.0}
to
' {$PBASIC 2.5}
then your program will work. The PIN directive only became available after Version 2.5 of PBASIC.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
http://forums.parallax.com/showthread.php?p=634844
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support