Ok, there are more things to RGB / RGBW leds that I knew :)
The "RGBW WS2812B" Leds are from banggood. So maybe the seller knows what exact chip it usess... 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. Not visible on the image, but the uC is at the green side.
But the library throws an exception if I try to write a single RGBW pixel, because the array length is not divisible by 3:
require("neopixel").write(D14, [50,0,0,0]);
My writeRGBW idea would be simply a write that works with multiples of 4 bytes out of the box :)
writeRGBW
write
1 Attachment
@AkosLukacs started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, there are more things to RGB / RGBW leds that I knew :)
The "RGBW WS2812B" Leds are from banggood. So maybe the seller knows what exact chip it usess...
For example (on MDBT42Q module):
produces green, red, blue, and three "white"s. Not visible on the image, but the uC is at the green side.
But the library throws an exception if I try to write a single RGBW pixel, because the array length is not divisible by 3:
My
writeRGBW
idea would be simply awrite
that works with multiples of 4 bytes out of the box :)1 Attachment