#include <FastLED.h>
#define LED_PIN 4
#define LED_COUNT 4
CRGB leds[LED_COUNT];
void setup() {
FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, LED_COUNT);
}
void loop() {
// Set all Neopixels to red color
fill_solid(leds, LED_COUNT, CRGB::Red);
FastLED.show(); // Update the Neopixels with the new colors
delay(1000); // Wait for 1 second
}Loading
esp32-c3-devkitm-1
esp32-c3-devkitm-1