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.
Dependents: WoYaoChengGOng V2-WoYaoChengGOng STM32_MagneticLight tape_Led_Sample ... more
Revision 24:5c01a6fa1556, committed 2016-09-09
- Comitter:
- DavidEGrayson
- Date:
- Fri Sep 09 22:12:31 2016 +0000
- Parent:
- 23:881d93b8749a
- Child:
- 25:d72818ba17cc
- Commit message:
- Added a comment about the STM32F303K8.;
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 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.
Pololu Addressable RGB LED Strip