Shop OBEX P1 Docs P2 Docs Learn Events
Quad Crawler - Syntax error w/ Pins — Parallax Forums

Quad Crawler - Syntax error w/ Pins

RobomanjoshRobomanjosh Posts: 4
edited 2005-08-30 14:15 in Robotics
I keep having a problem with every program that defines a PIN
example:
PSC PIN 15 ' PSC module
Button1 PIN 12
Syntax Error: Expected ':' or End-of-line
I have read everything I can to find out the program. I have not found anything that has helped.
Please send help, either explain why this is happening, or send a piece of code that will help.
I just need a basic program to define the buttons and/or to make it walk
Thank you

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-29 14:46
    Hello,

    ·· Please· add the PBASIC 2.5 directive to the beginning of your code.· The PIN keyword is only recognized under PBASIC 2.5.· Also be sure you're using the latest version of the PBASIC Editor if it's older than V2.1.· This can be downloaded from our website under downloads/BASIC Stamp Software.· I suspect it's just the PBASIC 2.5 directive though.· If you hand-typed it in, try using the directive menu option instead.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com


    Post Edited (Chris Savage (Parallax)) : 8/29/2005 2:46:13 PM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-29 15:57
    And correct your typos. And please don't start duplicat threads -- you started a tread on this issue in the BASIC Stamp forum and the problems are being discussed there.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • RobomanjoshRobomanjosh Posts: 4
    edited 2005-08-30 14:15
    Yes, that did work thanks. I upgraded the program
    Sorry about the putting one post on BASIC Stamp
    and in Robotics but I thought since it was a quad crawler robot that it would be better to put the question here.
    Because I thought that it was a problem with the robot source code
Sign In or Register to comment.