This is an example program for the PololuLedStrip library. It generates a simple moving gradient pattern.

Dependencies:   PololuLedStrip mbed LedStripGradient

Dependents:   LedStripGradient led_phare_crf

For more information, see the PololuLedStrip library.

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Tue Feb 26 02:18:55 2013 +0000
Parent:
3:f566eea13f49
Child:
5:8b685ba2f16b
Commit message:
Got it to use the SET and CLEAR arguments properly.;

Changed in this revision

led_strip.s Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/led_strip.s	Tue Feb 26 02:16:59 2013 +0000
+++ b/led_strip.s	Tue Feb 26 02:18:55 2013 +0000
@@ -6,8 +6,8 @@
     MOV.W   R10, #0x040000   ; 0x040000 = 1<<18 all "0"s with a "1" in bit 18
     CMP     R3, #0          ; value == 0 ?
     ITE EQ
-    STREQ   R10, [R9,#0x1C]  ; if==0, clear LED1 bit
-    STRNE   R10, [R9,#0x18]  ; if==1, set LED1 bit
+    STREQ   R10, [R2,#0]  ; if==0, clear LED1 bit
+    STRNE   R10, [R1,#0]  ; if==1, set LED1 bit
     pop     {R9,R10}
     BX      LR
     END
\ No newline at end of file
--- a/main.cpp	Tue Feb 26 02:16:59 2013 +0000
+++ b/main.cpp	Tue Feb 26 02:18:55 2013 +0000
@@ -98,9 +98,9 @@
 using namespace Pololu;
 
 DigitalOut myled(LED1);
-DigitalOut myled2(LED2);
+PololuLedStrip ledStrip(LED1);
 
-PololuLedStrip ledStrip(p9);
+DigitalOut myled2(LED2);
 
 int main() {
     gpio_t gpio;