From 4095c167d370560209dc255477edc797ac968980 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Mon, 14 Mar 2011 11:09:18 -0700 Subject: Small cleanup and added random blinking option. --- examples/stm32/stm32-h103/led_stripe/led_stripe.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'examples/stm32/stm32-h103/led_stripe') diff --git a/examples/stm32/stm32-h103/led_stripe/led_stripe.c b/examples/stm32/stm32-h103/led_stripe/led_stripe.c index d13221b..9cf9d4f 100644 --- a/examples/stm32/stm32-h103/led_stripe/led_stripe.c +++ b/examples/stm32/stm32-h103/led_stripe/led_stripe.c @@ -24,6 +24,8 @@ * http://www.adafruit.com/datasheets/LPD6803.pdf */ +#include + #include #include @@ -173,7 +175,16 @@ void step_colors(struct color *colors, int count) { struct color tmp_color1; struct color tmp_color2; +/* random blinking */ +/* + for (i=0; i