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:
- 40:56ab6d368e9b
- Parent:
- 35:9f55326c1b0a
- Child:
- 42:2eba0c075a89
--- a/main.cpp Tue Apr 21 22:19:43 2015 +0000 +++ b/main.cpp Thu Apr 23 18:41:32 2015 +0000 @@ -27,10 +27,10 @@ int exitFlag = 0;//exit flag int mainOption = 0;//counter for main menu - int exitOption = 0;//counter for exit menu + int exitOption = 1;//counter for exit menu - timerA.attach(&timerExpiredA, 0.2);//checks state of buttonA - timerB.attach(&timerExpiredB, 0.2);//checks state of buttonB + timerA.attach(&timerExpiredA, 0.1);//checks state of buttonA + timerB.attach(&timerExpiredB, 0.1);//checks state of buttonB while(1) { drawMainMenu();//draws main menu