100 FPS; use all colors

This commit is contained in:
Thomas Kolb 2017-03-02 00:03:14 +01:00
parent 7b369169d2
commit 91fac56f88

View file

@ -93,16 +93,21 @@ void loop()
if(now > fader_next_update) {
fader_update();
fader_next_update += 20; // -> 50 FPS
fader_next_update += 10; // -> 100 FPS
if((fader_loop % 50) == 0) {
if(((fader_loop / 50) % 2) == 0) {
if((fader_loop % 200) == 0) {
int round = (fader_loop / 200) % 3;
if(round == 0) {
for(int i = 0; i < NUM_MODULES; i++) {
fader_fade_colour(i, 255, 0, 0);
}
} else if(round == 1) {
for(int i = 0; i < NUM_MODULES; i++) {
fader_fade_colour(i, 0, 255, 0);
}
} else {
for(int i = 0; i < NUM_MODULES; i++) {
fader_fade_colour(i, 255, 0, 0);
fader_fade_colour(i, 0, 0, 255);
}
}
}