initial commit

This commit is contained in:
2024-11-30 11:17:09 +00:00
commit 949ad75506

17
main.ino Normal file
View File

@@ -0,0 +1,17 @@
#include <FastLED.h>
#define NUM_LEDS 512
#define DATA_PIN 4
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, DATA_PIN, GRB>(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
}