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:
Fri Sep 09 22:12:31 2016 +0000
Parent:
23:881d93b8749a
Child:
25:d72818ba17cc
Commit message:
Added a comment about the STM32F303K8.;

Changed in this revision

led_strip_write_color.s Show annotated file Show diff for this revision Revisions of this file
--- a/led_strip_write_color.s	Thu Sep 08 23:53:42 2016 +0000
+++ b/led_strip_write_color.s	Fri Sep 09 22:12:31 2016 +0000
@@ -49,7 +49,7 @@
     str r3, [r1]       ; Drive the line high.
     
     ; It doesn't really matter exactly how long we delay here as long as it is
-    ; less than 540 microseconds.
+    ; less than the LED's threshold between 0 and 1.
     nop
     nop
     nop
@@ -61,16 +61,16 @@
     tst r6, r4
     bne delay0
     str r3, [r2]       ; If the bit to send it 0, drive the line low.
+
 delay0
-
     delay #0
 
     ldr r4, =0x80000000
     tst r6, r4
     beq delay1
     str r3, [r2]       ; If the bit to send is 1, drive the line low.
+
 delay1
-    
     delay #1
     
     lsls r6, r6, #1           ; Shift color bits.