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

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Wed Nov 01 23:11:49 2017 +0000
Parent:
25:d72818ba17cc
Child:
27:9a62663f3de2
Commit message:
Make it be a compile-time error if GPIO_IP_WITHOUT_BRR is set.

Changed in this revision

PololuLedStrip.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PololuLedStrip.cpp	Thu Nov 03 21:02:47 2016 +0000
+++ b/PololuLedStrip.cpp	Wed Nov 01 23:11:49 2017 +0000
@@ -1,5 +1,12 @@
 #include "PololuLedStrip.h"
 
+// Our assembly code currently does not work with chip families like the STM32F4
+// that use the same register and a different mask for setting and clearing
+// outputs.
+#ifdef GPIO_IP_WITHOUT_BRR
+#error This chip is not supported: does not have separate registers for setting and clearing GPIO outputs.
+#endif
+
 bool PololuLedStrip::interruptFriendly = false;
 
 // The two timed delays, in units of half-cycles.