deleted delay and FPS
This commit is contained in:
parent
26bfcc64fe
commit
4efee8a843
1 changed files with 1 additions and 6 deletions
|
@ -6,7 +6,6 @@
|
||||||
#define NUM_LEDS 120
|
#define NUM_LEDS 120
|
||||||
|
|
||||||
#define BRIGHTNESS 200
|
#define BRIGHTNESS 200
|
||||||
#define FRAMES_PER_SECOND 120
|
|
||||||
|
|
||||||
const int matrix[12][10] = {
|
const int matrix[12][10] = {
|
||||||
{ 76, 75, 68, 67, 60, 59, 52, 51, 44, 43 },
|
{ 76, 75, 68, 67, 60, 59, 52, 51, 44, 43 },
|
||||||
|
@ -71,22 +70,18 @@ void pixelfur(int z)
|
||||||
for(int k = 0; k < 10; k++){
|
for(int k = 0; k < 10; k++){
|
||||||
leds[matrix[i][k]] = colormap[i][k];
|
leds[matrix[i][k]] = colormap[i][k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FastLED.show(); // display this frame
|
FastLED.show(); // display this frame
|
||||||
FastLED.delay(1000 / FRAMES_PER_SECOND);
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
leds[matrix[4][2]] = leds[matrix[4][7]] = bg;
|
leds[matrix[4][2]] = leds[matrix[4][7]] = bg;
|
||||||
leds[matrix[10][4]] = leds[matrix[10][5]] = rr;
|
leds[matrix[10][4]] = leds[matrix[10][5]] = rr;
|
||||||
FastLED.show(); // display this frame
|
FastLED.show(); // display this frame
|
||||||
FastLED.delay(1000 / FRAMES_PER_SECOND);
|
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
leds[matrix[5][2]] = leds[matrix[5][7]] = bg;
|
leds[matrix[5][2]] = leds[matrix[5][7]] = bg;
|
||||||
leds[matrix[11][4]] = leds[matrix[11][5]] = rr;
|
leds[matrix[11][4]] = leds[matrix[11][5]] = rr;
|
||||||
FastLED.show(); // display this frame
|
FastLED.show(); // display this frame
|
||||||
FastLED.delay(1000 / FRAMES_PER_SECOND);
|
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue