I have built several matrix using Neopixel strips and the remap function from the NeoMatrix library (works like a charm), but everytime I was using RGB strips. Now I'm trying to use a RGBW led strip to create a matrix. Everything works perfectly (using a Feather M0 Wifi, a level shifter, a GRBW neopixel strip, and the Zero DMA Neomatrix library).
The problems rise as I'm trying to light the white part of the leds.
I can't use the usual matrix.Color or matrix.drawPixel functions as they are not overloaded in the Neomatrix library.
My goal is simply to write something like
Code: Select all
c = matrix.Color(0, 0, 0, 255);
matrix.drawPixel(0, 0, c);
viewtopic.php?f=8&t=101037&p=513338
viewtopic.php?f=47&t=104294&p=523377
but I can't understand the proper and clean to do what I need...
I created a dummy neopixel object, letting me create a RGBW color (stored in a uint32_t),
but the drawPixel function only takes uint16_t, so that's where I'm stuck...
Any advice on how to do this in a clean and effective way?
Thanks in advance!