Shop OBEX P1 Docs P2 Docs Learn Events
PE Kit Objects Lab 1.1 Trap for Unwary — Parallax Forums

PE Kit Objects Lab 1.1 Trap for Unwary

John AbshierJohn Abshier Posts: 1,116
edited 2008-10-07 21:10 in Propeller 1
AddressBlinkerControl asks for delay clock ticks.· Being lazy, I entered 1.· That caused the waitcnt in AddressBlinker to roll over since the delay was too short.· Being impatient, I quickly looked at the LEDs and did not see the change in led that I had input. Suggested code change in AddressBlinker

···· rate := long[noparse][[/noparse]rateAddress]
···· rate·#>=·minValue··· 'added line
···· waitcnt(rate/2 + cnt)

I haven't determined what minValue is.· It is at least 762 + cycles for the divide by 2

John Abshier

Comments

  • edited 2008-10-07 21:10
    Nice catch John, thanks. We'll add it to the revisions list.

    Andy

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.
Sign In or Register to comment.