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:
12:b6df8ac053c8
Parent:
11:e00ba70ac54c
Child:
19:46d7ab0ba3e7
--- a/led_strip_write_color.s	Fri Mar 01 04:16:44 2013 +0000
+++ b/led_strip_write_color.s	Fri Mar 01 04:34:54 2013 +0000
@@ -54,7 +54,7 @@
     ldr r4, =0x80000000
     tst r6, r4
     bne delay1
-    str r3, [r2]     ; If the bit to send it 0, drive the line low.
+    str r3, [r2]       ; If the bit to send it 0, drive the line low.
 delay1
 
     delay #1
@@ -62,17 +62,15 @@
     ldr r4, =0x80000000
     tst r6, r4
     beq delay2
-    str r3, [r2]     ; If the bit to send is 1, drive the line low.
+    str r3, [r2]       ; If the bit to send is 1, drive the line low.
 delay2
     
     delay #2
     
-    lsls r6, r6, #1              ; Shift color bits.
+    lsls r6, r6, #1           ; Shift color bits.
     subs r7, r7, #1           ; Decrement the loop counter.
-    bne send_led_strip_bit    ; Send another bit if we have not reached zero.
-    
-led_strip_asm_end
-    pop {r4, r5, r6, r7, pc}
+    bne send_led_strip_bit    ; Send another bit if we have not reached zero.   
+    pop {r4, r5, r6, r7, pc}  ; Otherwise, restore the registers and return.
     
 
 delay_region