Weird behavior, full brightness, then correcting?
I have a weird issue with FastLED and my WS2811 strips. When running the script below, as soon as I power on my Arduino it fades up the brightness. But the weird part it fades to full brightness, and then it corrects the brightness to the brightness I selected.
This happens however I set it up, if I remove the fade part it still happens. But the fade part confirmed to me that it is certainly a coding issue and not a hardware issue.
The video showing the issue is in the post below.
#include <FastLED.h> #define LED_PIN 16 #define NUM_LEDS 9
CRGB leds[NUM_LEDS];
void setup() { FastLED.addLeds<WS2811, LED_PIN, RGB>(leds, NUM_LEDS); FastLED.clear(); FastLED.show();
// FADE-UP
for (int b = 0; b <= 140; b++) {
FastLED.setBrightness(b);
// Set color
for (int i = 0; i < 5; i++) leds[i] = CRGB::White; leds[5] = CRGB::White; leds[5].nscale8(220); leds[6] = CRGB::White; leds[6].nscale8(210); leds[7] = CRGB::White; leds[7].nscale8(180); leds[8] = CRGB::White; leds[8].nscale8(130);
FastLED.show();
delay(5); // Fade speed
}
}
void loop() {
}
Posted Dec 4, 2025, 9:40 PM UTC