charlie-cube/charlieCube.ino
2022-04-06 21:35:35 -04:00

38 lines
650 B
C++

// WIP. 4/4/2022: started to implement delay timer asyncronously using existing timer2 interrupt.
#include "config.h"
#include "cubeplex.h"
#include <timer.h>
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;
}
}