// WIP. 4/4/2022: started to implement delay timer asyncronously using existing timer2 interrupt. #include "config.h" #include "cubeplex.h" #include int color = red; void setup() { Serial.begin(115200); Serial.println("start program..."); initCube(); //timerInit(); currentState = CHASETHEDOT; lastState = -1; // how many secconds until the animation is told to progress animationMax = 10; } void loop() { switch (currentState) { case CHASETHEDOT: chaseTheDot(); break; case RANDOMRAINBOW: rainbow_random(); break; case PLANARFLOP3D: planarFlop3D(); break; } }