Shop OBEX P1 Docs P2 Docs Learn Events
Changing values used to start a new cog. — Parallax Forums

Changing values used to start a new cog.

I am running a few cogs used for blinking lights on an ws2811 RGB string.

cognew(color_chase3(@Colors1, 13, color_chase3_delay, color_chase3_start, color_chase3_len),@stack4)

Is it possible to change these values ie. color_chase3_start and color_chase3_len while the cog is running or do I need to stop the cog and restart with new values.

I have multiple cogs driving differnt sections of one string and it works great.

Comments

Sign In or Register to comment.