Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: fll mbed-rtos mbed
Diff: main.cpp
- Revision:
- 18:c5d3a4d6e8e5
- Parent:
- 16:253d933a7633
- Child:
- 19:1036e651648b
diff -r 69536d02cb3c -r c5d3a4d6e8e5 main.cpp
--- a/main.cpp Mon Feb 16 12:10:18 2015 +0000
+++ b/main.cpp Mon Feb 16 13:03:06 2015 +0000
@@ -140,11 +140,21 @@
*/
+ button_t menu_bs[] = {
+ START, START, START, START, START, START,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ LEFT, LEFT, LEFT, LEFT, LEFT, LEFT,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ CIRCLE, CIRCLE,
+ };
+
+ Producer* menu = new OnetimeSource(menu_bs, sizeof(menu_bs) / sizeof(button_t));
+
// Koibumi2000
note* note_seq[] = {
- // &un1, &un1, &un1, &un1,
- // &un1, &un1, &un05,
- &dondai05, &un1,
+ &un1, &un1, &un1, &un1,
+ &un1, &un1, &un05, &dondai05, &un1,
&don05, &don05, &un1, &un1, &un1,
&un1, &un1, &un1, &un1,
@@ -291,7 +301,12 @@
&dondai05, &dondai05
};
- Producer* source = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 200);
+ Producer* taiko = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 200);
+
+ Producer* delayed = new DelayFlow(taiko, 3.49);
+
+ Producer* src_seq[] = { menu, delayed };
+ Producer* source = new SequentialFlow(src_seq, 2);
fll_run(source);
}
