Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Programing Tutorial — Parallax Forums

Propeller Programing Tutorial

SiriSiri Posts: 220
edited 2008-01-10 22:15 in Propeller 1
I am doing the Propeller Programing tutorial and all went smooth untill I reached Page. 134
The Example Object:Output.spin.
I typed the program exactly as shown and tried to compile it.
It will not complile due to an "error:expected an expression term" on the line _

· " waitcnt(clkfreq/1000*DelayMS +cnt " - the 3rd line before the last line

I am uploading the code as I have typed.

Please help me to solve this.

Thank you,

Siri

Comments

  • RaymanRayman Posts: 14,162
    edited 2008-01-10 21:10
    Well, "DelayMS" is not defined by your code...
  • RaymanRayman Posts: 14,162
    edited 2008-01-10 21:14
    PUB Toggle(Pin, Delay, Count)

    should be

    PUB Toggle(Pin, DelayMS, Count)
  • SiriSiri Posts: 220
    edited 2008-01-10 22:15
    Rayman,

    ·········· Thanks for your help. It worked.



    Siri
Sign In or Register to comment.