Permalink
Browse files

did stuff

  • Loading branch information...
2bt committed Oct 24, 2011
1 parent 0be91f4 commit daf755a07ac354be1ee46227ece3998c88b5b059
Showing with 6 additions and 7 deletions.
  1. +1 −1 firmware/Makefile
  2. +3 −4 firmware/apps/replicate.c
  3. +2 −2 firmware/apps/scroll2.c
View
@@ -33,7 +33,7 @@ OPT = s
##########################################################################################################
# List C source files here. (C dependencies are automatically generated.)
-SRC = main.c libs/font.c apps/cccdd.c apps/battery.c apps/scroll2.c apps/plasma_seb.c apps/helix.c apps/test.c apps/random.c apps/scroll.c apps/ball.c apps/snake.c apps/dodge.c apps/strobe.c
+SRC = main.c libs/font.c apps/cccdd.c apps/battery.c apps/scroll2.c apps/plasma_seb.c apps/helix.c apps/random.c apps/scroll.c apps/ball.c apps/snake.c apps/strobe.c
#SRC = main.c libs/font.c apps/cccdd.c
##########################################################################################################
@@ -1,7 +1,7 @@
#include <main.h>
#include <stdlib.h>
-#define CHAIN_LENGTH 64
+#define CHAIN_LENGTH 128
typedef enum { INIT, SHOW, LISTEN, QUIT } State;
@@ -55,8 +55,6 @@ static void key(key_type key, event_type event) {
if(state != LISTEN || event != DOWN)
return;
- printf("%d %d\n", key, event);
-
if(key == chain[step]) {
++step;
if(step == length) {
@@ -68,13 +66,14 @@ static void key(key_type key, event_type event) {
}
}
else {
+ // TODO: print level before exiting
state = QUIT;
}
}
static void init(void) ATTRIBUTES;
void init(void) {
- registerApp(tick, key, 10);
+ registerApp(tick, key, 7);
}
View
@@ -11,9 +11,9 @@ void init_scroll2(void) ATTRIBUTES;
#ifdef __AVR__
-char text2[] PROGMEM =" <<</>> Pentalight ";
+char text2[] PROGMEM =" Pentalight ";
#else
-char text2[] =" <<</>> Pentalight ";
+char text2[] =" Pentalight ";
#endif
const uint8_t text_len2 = 19;

0 comments on commit daf755a

Please sign in to comment.