###Just updated the NeoPixel library to support the RGBW NeoPixels
Important:
If you have an old app in Build that you are migrating to a Photon, P1, Electron or Core, please remove the NeoPixel library from your app and re-apply it to update the included library to v0.0.9. If you are creating a new app, simply add the NeoPixel library to your app and you will have the latest v0.0.9.
Live in the Particle Libraries - NeoPixel v0.0.9
https://build.particle.io/libs/5756121cd100a78a5a00067a/tab/rgbw-strandtest.cpp
Changelog v0.0.8 to v0.0.9:
- Tested on an Adafruit 24-pixel NeoPixel RGBW natural white ring, on Photon and Core.
- New RGBW PIXEL_TYPE is
SK6812RGBW
- Added new
rgbw-strandtest.cpp
Example - Added more info to the README.md
- Added these new RGBW functions:
setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b, uint8_t w);
Color(uint8_t r, uint8_t g, uint8_t b, uint8_t w);
setColor(uint16_t aLedNumber, byte aRed, byte aGreen, byte aBlue, byte aWhite);
setColorScaled(uint16_t aLedNumber, byte aRed, byte aGreen, byte aBlue, byte aWhite, byte aScaling);
setColorDimmed(uint16_t aLedNumber, byte aRed, byte aGreen, byte aBlue, byte aWhite, byte aBrightness);
- Added this new function to dynamically modify the number of pixels at runtime
updateLength(uint16_t n);