Hi
I think I’m going insane. I want to have a static light with my WS2801 where only the last section of the strip is on. Since I use it as a Night light, I want to use it in the lowest possible settings where a warm white light is still possible. That seemed to worked with a Lambda effect, but it is constantly flickering. I even set the code up so that it only set the LEDs when initializing, but it’s still flickering. I checked with a logic analyser and the values are in fact toggeling between values, sending a 0x04 and after the time defined in “update_interval” it’s 0x05, which is a very noticable difference. Has anyone experienced that as well?
Here’s my code:
light:
- platform: fastled_spi
chipset: WS2801
data_pin: GPIO23
clock_pin: GPIO18
num_leds: 78
rgb_order: RGB
data_rate: 1MHz
name: "FastLED SPI Light"
id: LED_Strip
effects:
- addressable_lambda:
name: "Night Light"
update_interval: 100ms
lambda: |-
if (initial_run) {
for (int i = it.size() - 1; i > 0; i--) {
if((i>=56)){
it[i] = Color(60, 60, 40);
}
else{
it[i] = Color(0, 0, 0);
}
}
}
I also find it mysterious that the color value is not the one sent by the ESP, is there a way where I could set the value sent by the SPI bus myself, or is it always abstracted?
Thanks in advance for the help!