Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

Revision:
4:9ee673ca05ad
Parent:
3:edbf31a8589f
Child:
5:130721ce29f7
--- a/main.cpp	Sat Feb 14 06:39:14 2015 +0000
+++ b/main.cpp	Sat Feb 14 06:49:42 2015 +0000
@@ -5,7 +5,7 @@
 #define FRAME 1.0 / 60 // 1 frame (sec)
 #define PULL_PERIOD 20 // millisec
 
-void sinkrun(const void *p)
+void invoke_sinkrun(const void *p)
 {
     ((Sink*)p)->run();
 }
@@ -25,12 +25,11 @@
     Mutex* mutex = new Mutex();
 
     Sink* sink = new Sink(source, mail_box, mutex);
-    rtos::RtosTimer buffer(sinkrun, osTimerPeriodic, (void *)sink);
 
     Ticker ticker;
     Output* output = new Output(mail_box);
 
-    buffer.start(PULL_PERIOD);
+    Thread th(invoke_sinkrun, (void *)sink);
     ticker.attach(output, &Output::run, FRAME);
 
     Thread::wait(osWaitForever);