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
Diff: led_strip_write_color.s
- Revision:
- 24:5c01a6fa1556
- Parent:
- 22:5368af3ff07d
- Child:
- 27:9a62663f3de2
--- 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.