Using NEOMATRIX library with RGBW Neopixel strip

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kefon
 
Posts: 16
Joined: Sat May 23, 2015 12:38 pm

Using NEOMATRIX library with RGBW Neopixel strip

Post by kefon »

Hi there,

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);
I've read two very interesting posts about this,
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!

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”