beyondscreen / node-rpi-ws281x-native

native bindings to drive WS2811 (or WS2812) LED-Controllers on a Raspberry Pi
MIT License
224 stars 101 forks source link

added support for option 'strip_type' #118

Closed Zefiro closed 3 years ago

Zefiro commented 3 years ago

See ws2811.h for the respective constants, e.g. "WS2811_STRIP_RGB = 0x00100800" Basically it's the shift-pattern to get 3 (or 4) consecutive bytes from the 32bit color value. The default value in ws2811.c is WS2811_STRIP_RGB

usefulthink commented 3 years ago

Thank you!

usefulthink commented 3 years ago

just published version 0.10.2 with both of your changes.