From c5ff8c47b86e8906c6139a7ba974f5c7af6d1fc1 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Sun, 22 Jan 2012 19:48:56 +0100 Subject: [PATCH] eeprom demo enabled. --- client/demo.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/demo.c b/client/demo.c index 0da0f68..44eacc0 100644 --- a/client/demo.c +++ b/client/demo.c @@ -34,7 +34,8 @@ void eeprom1() // lc_set animation stop lc_setMode(MODE_ANIMATION_STOP); - unsigned long buf = 0; + + int buf = 0; int tmp = 0; int tmp2 = 26; for (tmp = 0; tmp < 32; tmp++) @@ -47,8 +48,10 @@ void eeprom1() buf = (1 << tmp2); } + printf("delay: %d pos: %d frame: 0x%08x\n", tmp, tmp, buf); // save to position tmp - lc_saveFrame(buf, tmp, buf); + lc_saveFrame(buf, tmp, tmp); + usleep(2500); } // @@ -125,9 +128,9 @@ void demo() sleep(1); // save animation to eeprom and animate for 60 seconds - //eeprom1(); + eeprom1(); - //sleep(10); + sleep(10); // animate with a sinus wave sinus1(25);