(edited with some clarification) Just got a strip with "RGBW WS2812B" Leds from banggood. The good news is, the neopixel library it just works! If the number of LEDs is divisible by 3, or you pad it.
For example (on MDBT42Q module):
require("neopixel").write(D14, [50,0,0,0, 0,50,0,0, 0,0,50,0, 0,0,0,50, 50,50,50,50, 50,50,50,0]);
produces green, red, blue, and three "white"s.
But the library throws an exception if I try to write a single RGBW pixel:
Tried to dig into the c code, and create a
writeRGBW method, initially I thought it's just checking for different length :) But that rabbit hole is a bit deeper with all the device specific drivers...
@Gordon you have done a great job documenting the build process, had a custom build for the MDBT42Q module in a couple of minutes!
Do you plan to modify the library for official support? Or just add the workaround to the docs?