I’m wanting to do some analog RGB LED strips for a long time, but now i came acros WLED. but i have one quick quiestion, is huggy’s code the only thing to change? or is thear more? otherwise is it mabeu possible to sent the full code to me beacust i’m not great at programming.
@lard You don’t need that for just one set of outputs. All you need to do is uncomment #define WLED_USE_ANALOG_LEDS and the hardware you are using (H801, BWLT11, SHOJO_PCB, PLJAKOBS_PCB) in NpbWrapper.h. If you are using the Magic Home LED controller, that is the default.
@Aircoookie has anything changed in 0.10.0 that would make the code above not work?
Thanks. How about where it is now? If you recall, Def3nder had moved that code to FX_fcn.cpp to try to reduce flicker. Would things change if I put it back in NpbWrapper?
No, that wouldn’t really make a difference I believe, you can move it. The if statement with the _analogLastColor shouldn’t be necessary either for ESP32 (or ESP8266 with core 2.7.0+), since the flicker has already been fixed in the PWM drivers!
I’ve recently started to use WLED, as I had a bunch of LED strips lying around. Most of them are just analog strips though, but that now works as well - great!
One thing I noticed though, is that the color channel order doesn’t seem to work for these analog led strips. I’ve got some that are RGB, and other that are GRB. Changing the order through the web interface doens’t seem to actually do anything. As a quick test, I recompiled the code manually changing the SetPixelColor function to switch R and B, and that works fine.
Is it expected at this point that this wouldn’t work? I’ve been looking through the code, but coulnd’t really figure out what would be wrong (haven’t spend too much time though).
Where are we on this now? I set the compile flag for analog but don’t see any PWM coming out and don’t see where to assign the pins. Am I missing something? Is it board specific?
I tried to chase it down and notice the Ledc structures in the .h are not the same as the current Espressif ones that do have a field for the output pin.
Anyway, trying to use WLED to replace my older purchased LED controller with an analog strip.
Thanks!