A simple Simon Says game using a Grove Base Shield, 3 Grove LED Bars, 1 Grove Buzzer, and 3 Grove Buttons.
Components Used
Platform: ST-Nucleo-F401RE
Component Configuration
LED_Bar mid(D6, D5); //D5 LED_Bar right(D8, D7); //D7 LED_Bar left(D4, D3); //D3 InterruptIn button_left(A2); InterruptIn button_mid(A1); InterruptIn button_right(A0); DigitalOut buzzer(D2);
Gallery
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
8:7be76afe5597 | 2016-08-19 | pretty code/working game | File Diff Annotate |
7:b2576b2b916e | 2016-08-19 | fixed level/sequence bug | File Diff Annotate |
6:1c87edbbafe0 | 2016-08-19 | prettified | File Diff Annotate |
5:b6f37ce2a9a3 | 2016-08-18 | added start game interrupts, animations, etc. | File Diff Annotate |
4:9950f9ec46cf | 2016-08-18 | added button interrupts | File Diff Annotate |
3:96879db74ec8 | 2016-08-18 | cleaned up main function | File Diff Annotate |
2:8ff96f7acb45 | 2016-08-17 | prep for start up and randomization | File Diff Annotate |
1:1aca092ceb7e | 2016-08-17 | simon says init | File Diff Annotate |
0:67efb4657416 | 2016-08-17 | init | File Diff Annotate |