Shop OBEX P1 Docs P2 Docs Learn Events
Error 129: Expected ":" or end-of-file — Parallax Forums

Error 129: Expected ":" or end-of-file

GarciaGarcia Posts: 5
edited 2007-02-28 15:18 in BASIC Stamp
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

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-02-28 04:34
    Why are you asking again later? Your answer is in the other post.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-02-28 10:28
    Garcia -

    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 -->
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-28 15:18
    This is a duplicate thread. Please refer to the original post at the following link.

    http://forums.parallax.com/showthread.php?p=634844

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.