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:
- 11:e00ba70ac54c
- Parent:
- 10:f1bb84b97788
- Child:
- 12:b6df8ac053c8
--- a/led_strip_write_color.s Fri Mar 01 04:15:35 2013 +0000 +++ b/led_strip_write_color.s Fri Mar 01 04:16:44 2013 +0000 @@ -26,9 +26,7 @@ ; R13: Link Register, holds return addresses. ; Push those registers so we can restore them later. - push {r4, r5, r6, r7} - mov r4, lr - push {r4} + push {r4, r5, r6, r7, lr} ldrb r4, [r0, #0] ; Load red. lsls r4, r4, #24 @@ -74,10 +72,7 @@ bne send_led_strip_bit ; Send another bit if we have not reached zero. led_strip_asm_end - pop {r4} - mov lr, r4 - pop {r4, r5, r6, r7} - bx lr + pop {r4, r5, r6, r7, pc} delay_region