blinking external led with psu

technically works, but blinking incorrectly
This commit is contained in:
2026-08-25 03:39:54 +02:00
parent 55306caabe
commit e905be01b6
2 changed files with 63 additions and 0 deletions
@@ -0,0 +1,20 @@
#include <FastLED.h>
#define LED_PIN 15
#define NUM_LEDS 5
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
leds[0] = CRGB(255, 0, 0);
FastLED.show();
delay(500);
leds[1] = CRGB(0, 255, 0);
}