#include // Pin connected to the LED strip data input (DIN) #define LED_PIN D1 #define TOTAL_LEDS 60 // Real number of LEDs in the strip #define ACTIVE_LEDS 1 // LEDs you want to use Adafruit_NeoPixel strip(TOTAL_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800); void setup() { strip.begin(); // --- Turn OFF all LEDs --- for (int i = 0; i < TOTAL_LEDS; i++) { strip.setPixelColor(i, strip.Color(0, 0, 0)); } strip.show(); // Set brightness level (0–255) strip.setBrightness(25); // --- Turn ON only the active LEDs --- for (int i = 0; i < ACTIVE_LEDS; i++) { strip.setPixelColor(i, strip.Color(255, 0, 0)); // Red color. Change values to RGB color } strip.show(); } void loop() { }