Shop OBEX P1 Docs P2 Docs Learn Events
Question about COGSPIN — Parallax Forums

Question about COGSPIN

COGSPIN seems to call for a cog number (first parameter).

How do I get the runtime to pick the next available cog?

Comments

  • If it works the same way as the coginit in PASM2 then use a cogid of 16

  • AribaAriba Posts: 2,682

    You can use the predefined constant: COGEXEC_NEW, which is defined as %01_0000 (= 16dec). See the Spin documentation (near the end where the constants are).

    Andy

Sign In or Register to comment.