- Announcement about May 10th, 2018 update and your password.
Status Lights to Indicate Activity of Cogs
Hello, I am making a spin program to turn on and off the VGA LEDs on the PropBOE according to the active status of each cog.
Cog 0 starts up, Sets pins 0..7 as outs, then low, then turns on LED 0 to indicate that it is active, then generates two random numbers. Cog 0 then starts a cog according to random number a, then stops a cog according to random number b, also setting the corresponding LED low. As Each Cog is activated, it turns on an LED to indicate it's activity, then generates the random numbers to start and stop the other cogs.
What I need help with is the syntax of Coginit and the random operator, Thanks!