I need to read up on github about pull-requests. Until I figure that out…
It seems that the 8266 may not be up to it, so my code is for the ESP32. It’s currently for 4x RGB channels with the LED pins being {15,2,4, 5,18,19, 21,22,23, 13,12,14} or 4x RGBW {15,2,4,5, 18,19,21,22, 13,12,14,27, 26,25,33,32}.
Let me know if you want a bin file! I plan on making boards as well.
Nothing was really moved… But I have to agree the function naming is very confusing, something I hadn’t really noticed before. setRgbwPwm() in fx_fcn.h and SetRgbwPwm() both are relevant and implement part of the functionality, but are separate functions that do different thigns. I will rename one of them.
Hi @Aircoookie, the reason of the simmilar (but different) naming was that the one function is public (can be used from other modules wether the other one can only be accessed by the wrapper. I used this style simmilar to the other functions in the wrapper that had the same name but different first-letter-case.
I’m sorry to not find time working on WLED because of personal problems.
As WLED is my most interesting project I will (re-)start working when time comes …
Now with actual error goodness. Kinda looks like what I’ve seen before when I missed a semicolon, closing brace, or mismatched loops. I can’t find anything like that, though.
sketch\FX_fcn.cpp: In member function ‘void WS2812FX::setRgbwPwm()’:
FX_fcn.cpp:859:21: error: ‘color’ was not declared in this scope
bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255);
^
FX_fcn.cpp:859:31: error: ‘b’ was not declared in this scope
bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255);
So, I moved the ledcWrite stuff back into NpbWrapper but only some things work. I need to turn up the Master Brightness slider almost all of the way to get the LEDs/relay to turn on, and then only colors with mostly blue work.