From 949ad755062be4afd13d88580bd27e0da3138fe9 Mon Sep 17 00:00:00 2001 From: Smikkelbakje Date: Sat, 30 Nov 2024 11:17:09 +0000 Subject: [PATCH] initial commit --- main.ino | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 main.ino diff --git a/main.ino b/main.ino new file mode 100644 index 0000000..cae7a03 --- /dev/null +++ b/main.ino @@ -0,0 +1,17 @@ +#include + +#define NUM_LEDS 512 +#define DATA_PIN 4 + +CRGB leds[NUM_LEDS]; + +void setup() { + FastLED.addLeds(leds, NUM_LEDS); // Use GRB color order + FastLED.setBrightness(50); // Lower brightness to reduce power draw +} + +void loop() { + fill_solid(leds, NUM_LEDS, CRGB::Red); // Set all LEDs to red + FastLED.show(); + delay(500); // Pause for half a second +}