Shop OBEX P1 Docs P2 Docs Learn Events
About PIN — Parallax Forums

About PIN

tawfektawfek Posts: 3
edited 2006-08-28 11:50 in BASIC Stamp
Hi,
I am totally new to Basic Stamp. So I tried out the experiment #1 straight from the manual:-
' {$STAMP BS2}
' {PBASIC 2.5}

AlarmLed PIN· 0
FlashTm· CON 500

Main:
· HIGH AlarmLed
· PAUSE FlashTm
· LOW·AlarmLed
· PAUSE FlashTm
· GOTO Main


But what I dont understand is that I got an error message "EXPECTED : OR END OF LINE" ·at the PIN keyword, can anybody help me?
Thanks
·

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-08-24 07:31
    tawfek-

    All PBASIC Compiler directives MUST begin with a $ and be encased in curley bracket. Please replace the PBASIC directive to look like this:

    ' {$PBASIC 2.5}

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • tawfektawfek Posts: 3
    edited 2006-08-24 09:12
    Thanks for pointing that to me.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-08-24 14:47
    One way to avoid errors on the directives in the future is to use the toolbar or menu to insert them for you.· On the toolbar there are icons that look like pictures of BASIC Stamp Modules.· These are the Stamp Directives.· There are also 3 that say 1.0, 2.0 and 2.5 which are the PBASIC directives.· If you use these the Editor will "type" them for you.· I hope this helps.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • tawfektawfek Posts: 3
    edited 2006-08-28 11:50
    yup, just found this great feature too. Thanks for the tip.
Sign In or Register to comment.