deleted delay and FPS

This commit is contained in:
lycianwolf 2018-02-24 02:01:18 +01:00
parent 26bfcc64fe
commit 4efee8a843

View file

@ -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 },
@ -72,21 +71,17 @@ void pixelfur(int z)
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;
}; };