This library lets you control the addressable RGB LED strips from Pololu Robotics. Forked to add selectable colour order (Support RGB or GRB Leds)

Fork of PololuLedStrip by David Grayson

Revision:
27:9a62663f3de2
Parent:
19:46d7ab0ba3e7
--- a/PololuLedStrip.h	Wed Nov 01 23:11:49 2017 +0000
+++ b/PololuLedStrip.h	Sat May 19 14:16:38 2018 +0000
@@ -3,11 +3,20 @@
 #ifndef _POLOLU_LED_STRIP_H
 #define _POLOLU_LED_STRIP_H
 
+//If multiple colour orders are enabled, GRB will override RGB.
+
+//Use RGB colour order for WS2811 leds
+#define _POLOLU_ORDER_RGB
+
+//Use GRB colour order for WS2812b leds
+//#define _POLOLU_ORDER_GRB
+
+
 namespace Pololu
 {
     #ifndef _POLOLU_RGB_COLOR
     #define _POLOLU_RGB_COLOR
-    
+
     /** Represents an RGB color. */
     typedef struct rgb_color
     {
@@ -15,8 +24,7 @@
         uint8_t green; /*!< A number between 0 and 255 that represents the brightness of the green component. */
         uint8_t blue;  /*!< A number between 0 and 255 that represents the brightness of the blue component. */
     } rgb_color;
-    #endif
-
+#endif
     extern "C" int led_strip_write_color(rgb_color *, volatile uint32_t * set, volatile uint32_t * clear, uint32_t mask);
 
     /** This class lets you control the addressable RGB LED strips from Pololu</a>,