Shop OBEX P1 Docs P2 Docs Learn Events
QuickStart active COG demonstrator — Parallax Forums

QuickStart active COG demonstrator

lanternfishlanternfish Posts: 366
edited 2011-11-10 16:20 in Propeller 1
Following on from my Spin - TRUE, FALSE and BITWISE operators thread I have this idea that the Quickstart LED's could be used to show which COG(s) are active. I envisage this would be done with code that uses COGID commands. Anyone feel up to following up on this as my SPIN knowledge is weak.

Cheers

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2011-11-10 15:51
    Add this line to each cog function. LEDs are attached to pins 16..23 so 16+cogid will cover that range. When the cog exits dira gets reset and the LED turns off.
    dira[16+cogid] := outa[16+cogid] := 1
    
  • lanternfishlanternfish Posts: 366
    edited 2011-11-10 16:20
    Hi kuroneko

    So, so simple to add to existing code.

    Thanks
Sign In or Register to comment.