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
Diff: main.cpp
- Revision:
- 10:a31802412ab6
- Parent:
- 9:867dde4be88a
- Child:
- 11:9c2e3efd7cda
--- 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();