added tunnel animation
This commit is contained in:
parent
f2e601bc66
commit
0a36308aa9
3 changed files with 6 additions and 1 deletions
|
|
@ -30,6 +30,10 @@ void loop() {
|
|||
rainbow_random();
|
||||
break;
|
||||
|
||||
case TUNNEL:
|
||||
tunnel();
|
||||
break;
|
||||
|
||||
case RAINBOWCORNER:
|
||||
rainbow_corner();
|
||||
break;
|
||||
|
|
|
|||
1
config.h
1
config.h
|
|
@ -4,6 +4,7 @@
|
|||
typedef enum STATE {
|
||||
CHASETHEDOT,
|
||||
RAINBOWRANDOM,
|
||||
TUNNEL,
|
||||
RAINBOWCORNER,
|
||||
PLANARFLOP3D
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue