A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Diff: main.cpp
- Revision:
- 17:242ccf6a8442
- Parent:
- 16:93ae2f311fd8
- Child:
- 19:e0fd493816ae
--- a/main.cpp Fri Apr 17 21:26:52 2015 +0000 +++ b/main.cpp Sat Apr 18 00:42:44 2015 +0000 @@ -22,16 +22,15 @@ lcd.init();//initialise screen welcome();//welcome screen lcd.clear();//clear pixels + buttonA.mode(PullDown);//pull down buttonA + buttonB.mode(PullDown);//pull down buttonB int exitFlag = 0;//exit flag int mainOption = 0;//counter for main menu int exitOption = 0;//counter for exit menu - buttonA.mode(PullDown); - buttonB.mode(PullDown); - - timer.attach(&timerExpiredA, 0.2);//checks state of buttonA - timer2.attach(&timerExpiredB, 0.2);//checks state of buttonB + timerA.attach(&timerExpiredA, 0.2);//checks state of buttonA + timerB.attach(&timerExpiredB, 0.2);//checks state of buttonB while(1) { drawMainMenu();//draws main menu