Starting with the actual game \o/

This commit is contained in:
Andreas committed 2026-04-13 16:24:55 +02:00
1 parent 66e5a8c120
commit f5236476ed
8 files changed
+132395 -257

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@
CRGB leds[NUM_LEDS];
void setup() {
Serial.begin(57600);
Serial.begin(9600);
Serial.println("resetting");
FastLED.addLeds<WS2812,DATA_PIN,RGB>(leds,NUM_LEDS);
FastLED.setBrightness(84);
@@ -26,7 +26,7 @@ void setMirroredLED(int i, CHSV color) {
leds[i] = color;
if (120 - i >= 0 && 120 - i < NUM_LEDS) leds[119 - i] = color;
if (120 + i < NUM_LEDS) leds[120 + i] = color;
if (180 + i < NUM_LEDS) leds[240 - i] = color;
if (239 - i >= 0 && 239 - i < NUM_LEDS) leds[239 - i] = color;
}
void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds[i].nscale8(250); } }