nucleo version
Fork of PololuLedStrip by
Diff: led_strip_write_color.s
- Revision:
- 21:87fd6273e0ff
- Parent:
- 20:656bbcb64e3b
- Child:
- 22:7a2bda46a606
--- a/led_strip_write_color.s Wed Nov 13 21:16:24 2013 +0000 +++ b/led_strip_write_color.s Tue Nov 26 23:05:08 2013 +0000 @@ -35,9 +35,9 @@ orrs r6, r6, r4 ; Put red in r6. ldrb r4, [r0, #2] ; Load blue. lsls r4, r4, #8 - orrs r6, r6, r4 ; Put blue in LSB of r6. + orrs r6, r6, r4 ; Put blue in r6. - ; On the Cortex M0 we simply did: + ; On the Cortex-M3 we simply did: ; ldr r6, [r0] ; Read the color. Now we have: xxBbGgRr ; rbit r6, r6 ; Reverse the order of the bits: rRgGbBxx ; rev r6, r6 ; Reverse the order of the bytes: xxbBgGrR @@ -65,6 +65,7 @@ delay #0 + tst r6, r8 ldr r4, =0x80000000 tst r6, r4 beq delay1