Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

Revision:
3:edbf31a8589f
Parent:
2:165723d41023
Child:
4:9ee673ca05ad
diff -r 165723d41023 -r edbf31a8589f main.cpp
--- a/main.cpp	Sat Feb 14 04:49:28 2015 +0000
+++ b/main.cpp	Sat Feb 14 06:39:14 2015 +0000
@@ -3,7 +3,7 @@
 #include "fll.h"
 
 #define FRAME 1.0 / 60 // 1 frame (sec)
-#define PULL_PERIOD 100 // millisec
+#define PULL_PERIOD 20 // millisec
 
 void sinkrun(const void *p)
 {
@@ -16,12 +16,12 @@
 
 int main(void)
 {
-    button array[] = {R1|B_CIRCLE, 0};
+    button_t array[] = {R1|B_CIRCLE, 0};
     // user must make Source
-    Source* source = new Source(array, sizeof(array)/sizeof(button), true);
+    Source* source = new Source(array, sizeof(array)/sizeof(button_t), true);
 
     // common pattern
-    Mail<button, MAIL_BOX_SIZE>* mail_box = new Mail<button, MAIL_BOX_SIZE>();
+    Mail<button_t, MAIL_BOX_SIZE>* mail_box = new Mail<button_t, MAIL_BOX_SIZE>();
     Mutex* mutex = new Mutex();
 
     Sink* sink = new Sink(source, mail_box, mutex);