Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

Revision:
8:d16a0fcc2735
Parent:
7:61b4825304e2
Child:
9:0d6631edfc32
diff -r 61b4825304e2 -r d16a0fcc2735 main.cpp
--- a/main.cpp	Sat Feb 14 16:39:53 2015 +0000
+++ b/main.cpp	Sat Feb 14 16:51:25 2015 +0000
@@ -19,10 +19,6 @@
     }
 };
 
-void invoke_sinkrun(const void *p) {
-    ((Sink*)p)->run();
-}
-
 int main(void)
 {
     button_t array0[] = {R1, 0};
@@ -33,18 +29,6 @@
     Producer* source1 = new RepeaterSource(array1, sizeof(array1)/sizeof(button_t));
     Producer* ss[] = {source0, source1};
     Producer* source = new OrFoldFlow(ss, 2);
-
-    // common pattern
-    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);
-
-    Ticker ticker;
-    Output* output = new Output(mail_box);
-
-    Thread th(invoke_sinkrun, (void *)sink);
-    ticker.attach(output, &Output::run, FRAME);
-
-    Thread::wait(osWaitForever);
+    
+    fll_run(source);
 }