Permalink
Browse files

Add ws2813

both as normal and OCTOWS
  • Loading branch information...
alex-Arc committed Jul 19, 2016
1 parent 8267d4d commit 6fd07beed9e899a8e7b7a73aa37bc41fd7ac84b7
Showing with 5 additions and 6 deletions.
  1. +1 −0 FastLED.h
  2. +1 −1 README.md
  3. +3 −5 platforms/arm/k20/octows2811_controller.h
View
@@ -351,6 +351,7 @@ class CFastLED {
switch(CHIPSET) {
case OCTOWS2811: { static COctoWS2811Controller<RGB_ORDER> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
case OCTOWS2811_400: { static COctoWS2811Controller<RGB_ORDER,true> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
case OCTOWS2813: { static COctoWS2811Controller<RGB_ORDER,true> controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
}
}
View
@@ -42,7 +42,7 @@ How quickly can you get up and running with the library? Here's a simple blink
Here's a list of all the LED chipsets are supported. More details on the led chipsets are included *TODO: Link to wiki page*
* Adafruit's DotStars - AKA the APA102
* Adafruit's Neopixel - aka the WS2812B (also WS2811/WS2812, also supported in lo-speed mode) - a 3 wire addressable led chipset
* Adafruit's Neopixel - aka the WS2812B (also WS2811/WS2812/WS2813, also supported in lo-speed mode) - a 3 wire addressable led chipset
* TM1809/4 - 3 wire chipset, cheaply available on aliexpress.com
* TM1803 - 3 wire chipset, sold by radio shack
* UCS1903 - another 3 wire led chipset, cheap
@@ -7,7 +7,7 @@
FASTLED_NAMESPACE_BEGIN
template<EOrder RGB_ORDER = GRB, boolean SLOW=false>
template<EOrder RGB_ORDER = GRB, uint8_t CHIP = WS2811_800kHz>
class COctoWS2811Controller : public CPixelLEDController<RGB_ORDER, 8, 0xFF> {
OctoWS2811 *pocto;
uint8_t *drawbuffer,*framebuffer;
@@ -19,9 +19,7 @@ class COctoWS2811Controller : public CPixelLEDController<RGB_ORDER, 8, 0xFF> {
// byte ordering is handled in show by the pixel controller
int config = WS2811_RGB;
if(SLOW) {
config |= WS2811_400kHz;
}
config |= CHIP;
pocto = new OctoWS2811(nLeds, framebuffer, drawbuffer, config);
@@ -39,7 +37,7 @@ class COctoWS2811Controller : public CPixelLEDController<RGB_ORDER, 8, 0xFF> {
uint32_t raw[2];
} Lines;
virtual void showPixels(PixelController<RGB_ORDER, 8, 0xFF> & pixels) {
virtual void showPixels(PixelController<RGB_ORDER, 8, 0xFF> & pixels) {
_init(pixels.size());
uint8_t *pData = drawbuffer;

0 comments on commit 6fd07be

Please sign in to comment.