Modified library of Pixel Array showing main.cpp code implementing buffer/array of pixels method of updating pixel chain.
Dependents: NeoPixel-DemoBuffer Final_project Final_project
Fork of PixelArray by
Diff: neopixel.h
- Revision:
- 6:1d8c73d4c7e6
- Parent:
- 3:6f392fcb1d3b
--- a/neopixel.h Mon Sep 08 09:28:08 2014 +0000 +++ b/neopixel.h Tue Mar 10 04:40:06 2015 +0000 @@ -18,6 +18,7 @@ uint8_t blue; }; + /** Control the byte order used by the connected pixels. * * The vast majority of NeoPixels use a GRB byte order, so this is the default. @@ -101,7 +102,7 @@ * @param byte_order The order in which to transmit colour channels. */ PixelArray(PinName out, - ByteOrder byte_order = BYTE_ORDER_GRB, + ByteOrder byte_order = BYTE_ORDER_RGB, Protocol protocol = PROTOCOL_800KHZ); /** Update the pixel display from a buffer.