Whack a Mole game! Features: - LCD graphics display - Touch pad input - Speaker effects through a class D audio amplifier\ - A high score page maintained by the SD card file system - Analog noise used to seed random numbers
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed
Fork of MPR121_Demo by
Revision 10:a31802412ab6, committed 2016-03-14
- Comitter:
- tpettet3
- Date:
- Mon Mar 14 19:04:38 2016 +0000
- Parent:
- 9:867dde4be88a
- Child:
- 11:9c2e3efd7cda
- Commit message:
- Final draft no faces;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Mar 14 18:50:39 2016 +0000
+++ b/main.cpp Mon Mar 14 19:04:38 2016 +0000
@@ -517,6 +517,8 @@
}
wait(0.5);
counter++; // increment counter and run the "state machine again"
+ lcd.text_string("Score: ", 1, 15, FONT_7X8, GREEN);
+ lcd.printf("%d",score);
}
// clear the lcd screen
lcd.cls();
