added tunnel animation

This commit is contained in:
Sean 2022-04-14 20:26:43 -04:00
parent f2e601bc66
commit 0a36308aa9
3 changed files with 6 additions and 1 deletions

View file

@ -30,6 +30,10 @@ void loop() {
rainbow_random();
break;
case TUNNEL:
tunnel();
break;
case RAINBOWCORNER:
rainbow_corner();
break;

View file

@ -4,6 +4,7 @@
typedef enum STATE {
CHASETHEDOT,
RAINBOWRANDOM,
TUNNEL,
RAINBOWCORNER,
PLANARFLOP3D
};

View file

@ -582,7 +582,7 @@ int currentTimer = 0;
int maxTimer = 6250; // 100ms delay / 16uS interrupt time
int nextState(int state) {
return (state + 1) % 2;
return (state + 1) % 3;
}
// the interrupt function to display the leds (T2 = 8 bit timer)