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.

Revision:
6:59f1db26a9ff
Parent:
5:8b685ba2f16b
Child:
7:242f14ed9055
--- a/main.cpp	Tue Feb 26 02:25:19 2013 +0000
+++ b/main.cpp	Tue Feb 26 02:50:13 2013 +0000
@@ -110,11 +110,8 @@
     gpio_init(&gpio, p8, PIN_OUTPUT);
 
     while(1) {
-        myled2 = 1;
+        myled2 = !myled2.read();
         led_strip_write_color(colors, gpio.reg_set, gpio.reg_clr, gpio.mask);
         wait(0.2);
-        led_strip_write_color(colors, gpio.reg_set, gpio.reg_clr, gpio.mask);
-        myled2 = 0;
-        wait(1);
     }
 }