Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PololuLedStrip by
Revision 21:87fd6273e0ff, committed 2013-11-26
- Comitter:
- DavidEGrayson
- Date:
- Tue Nov 26 23:05:08 2013 +0000
- Parent:
- 20:656bbcb64e3b
- Child:
- 22:8dc878594d24
- Child:
- 23:5368af3ff07d
- Commit message:
- fixed a comment
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 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
