Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

main.cpp

Committer:
amutake
Date:
2015-02-14
Revision:
9:0d6631edfc32
Parent:
8:d16a0fcc2735
Child:
10:79bb44beb08b

File content as of revision 9:0d6631edfc32:

#include "mbed.h"
#include "rtos.h"
#include "fll.h"
#include "fll_producers.h"

int main(void)
{
    button_t array0[] = {R1, 0};
    button_t array1[] = {CIRCLE, 0};

    Producer* source0 = new RepeaterSource(array0, sizeof(array0)/sizeof(button_t));
    Producer* source1 = new RepeaterSource(array1, sizeof(array1)/sizeof(button_t));
    Producer* ss[] = {source0, source1};
    Producer* source = new MergeFlow(ss, 2);
    
    fll_run(source);
}