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:
- 4:4cb02cde783c
- Parent:
- 3:dbae62823ec8
- Child:
- 5:070755be0a77
--- a/main.cpp Mon Mar 14 04:26:32 2016 +0000 +++ b/main.cpp Mon Mar 14 04:44:41 2016 +0000 @@ -136,9 +136,9 @@ int col1 = 21; int col2 = 64; int col3=107; -int row1=107; +int row3=107; int row2=64; -int row3=21; +int row1=21; int r = 20; int rmole=18;//radius mole int mole= 0xD3D3D3;//mole color like gray @@ -503,8 +503,9 @@ } wait(3); pc.printf("you scored %i \n\r",score); - lcd.text_string("What does...", 1, 1, FONT_7X8, GREEN); - lcd.text_string("What does...", 1, 2, FONT_7X8, BLUE); + //lcd.text_string("What does...", 1, 1, FONT_7X8, GREEN); + //lcd.text_string("What does...", 1, 8, FONT_7X8, BLUE); + lcd.printf("you scored %D",score); }