From my other RGBW LED strip post it seems that there is some need for RGBW sample sketches, so I splitted this into a new thread for generic RGBW types (my UCS2912-based is a very special one).
1st a note: RGBW LEDs might draw up to 80mA with all colors + white at full brightness! That means that a 60-pixel strip can draw up to 60x 80 = 4800mA, so you should use a 5A power supply; for a 144-pixel strip its max 11520mA = 12A power supply!
Unfortunately the tutorials for Neopixel and the Adafruit Neopixel library do not cover yet RGBW pixel strips, but basically they are worth to read ...
A commonly used RGBW chip type is the SK6812RGBW; I've googled for it and found the SK6812RGBW datasheet which suggests that this type is already fully supported by the recent Adafruit Neopixel library because each RGBW LED has its own chip onboard like the WS281x ones - its just a matter of correctly setting up the strip in the sketches ...; based on feedback and testing with my own SK6812RGBW-based strip it seems that SK6812RGBW-based strips work fine with the NEO_GRBW pixel type ...
Find attached 3 sample sketches ...
test_rgbw: just switches RED, GREEN, BLUE, WHITE_LED each for 5 sec. on (in this order)
simple_rgbw: derived from simple sketch which comes with the Neopixel library with some addons
strandtest_rgbw: derived from strandtest sketch which comes with the Neopixel library with some addons
BTW. the sketches are still small enough to also run on an ATtiny85 ...
These sketches also still run fine with RGB strips if you only change the NEO_PTYPE define.
Please give some feedback if the sketches work for you (probably also with other strip types) or not!
simple_rgbw.zip (2 KB)
strandtest_rgbw.zip (4.2 KB)
test_rgbw.zip (2.2 KB)