A retro gaming programme, designed for use on a portable embedded system. Incorporates power saving techniques.
Dependencies: ConfigFile N5110 PowerControl beep mbed
Diff: tower.h
- Revision:
- 76:c11cb774bd27
- Parent:
- 74:d76be537bafd
- Child:
- 78:e2fc547c6b99
--- a/tower.h Sun May 10 13:31:26 2015 +0000 +++ b/tower.h Sun May 10 19:29:46 2015 +0000 @@ -33,6 +33,24 @@ Serial serial(USBTX, USBRX); /** +@namespace deBounce +@brief Creates a minimum time span of before buttonA is acknowledged; at intervals of 0.1 sec. +*/ +Timer deBounce1;//for buttonA + +/** +@namespace deBounce +@brief Creates a minimum time span of before buttonB is acknowledged; at intervals of 0.1 sec. +*/ +Timer deBounce2;//for buttonB + +/** +@namespace timerGame +@brief Creates a minimum time span before the game loops; at intervals of 0.1 sec. +*/ +Ticker timerGame;//for game + +/** @namespace timerA @brief Calls the function, timerExpiredA(); at intervals of 0.1 sec. */ @@ -117,6 +135,9 @@ int buttonFlagA = 0;/*!< Button flag set for ISR when state of buttonA changes. */ int buttonFlagB = 0;/*!< Button flag set for ISR when state of buttonB changes. */ +//flag for game loop +int gameFlag = 0;/*!< Button flag set for ISR when game is entered. */ + //flag for joystick reading int printFlag = 0;/*!< Print flag set for ISR when Joystick is moved. */