LightBeer v2 – code prototyping

Setup
// Initialize all the pins

// global variable declarations
// array of anode pins by pair
// array of cathode pins by pair
(These should line up for easy reading)
// array of LED exclusives, as in if A, no B or C, except it will be numbers…
// array of LED current states by anode
//array of LED states by cathode

Loop
// grab a random number to choose led
//Check state cathode, if zero
//check state anode if less than two
//set cathode to +1
//set anode to anode+1
//Set each cathode on exclusion list to x

//update LEDs
//all anodes more than 1 go low, else high
//each cathode goes to abs(cathode state)
//change cathode state to cathode state+1
//If cathode state is now zero, set anode to anode-1, set cathode exclusions to zero
//Repeat