Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 56:8c827d1cae3b
- Parent:
- 48:bd1f31fbfee3
- Child:
- 58:4a826093d9e9
--- a/main.cpp Wed Apr 24 20:02:54 2019 +0000 +++ b/main.cpp Wed Apr 24 20:09:22 2019 +0000 @@ -31,44 +31,31 @@ * @details contrast is adjust with analog input PTB2 */ void contrast(); -/** - * @brief initialises all classes and libraries and default game settings +/** Initialises all classes and libraries and default game settings * @details initialises LCD and gamepad library and sets screen brightness */ void init(); -/** - * @brief Displays opening screen +/** Displays opening screen * @details Screen displays title of game and instructs player to press start to begin */ void start_screen(); -/** - * @brief Controls LEDs on front panel +/** Controls LEDs on front panel. * @details Every time a player dies a RHS LED is turned off, as time reduces - * LEDs turn off on LHS + * LEDs turn off on LHS. */ void leds(); -/** - * @brief initialises and renders all level objects +/** Initialises and renders all level objects * @details Contains functions for all levels and will display next level objects * once player has completed each level */ void render(); -/** - * @brief Displays screen if game over or game complete - * @details Screen will display player's final score and display game over or - * game complete +/** Displays screen if game over or game complete + * @details Screen will display player's final score and display game over or game complete */ void restart(); ///////////// functions //////////////// -/** Level Class -@author Andrew Milner University of Leeds -@brief Sets position of all level objects -@date April 2019 - -@code -*/ int main() { init(); // initialises screen and default game settings