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:
- 1:679d7ada8de7
- Parent:
- 0:8fb740fa6356
--- a/main.cpp Sat May 11 14:58:43 2019 +0000 +++ b/main.cpp Sun May 12 13:43:27 2019 +0000 @@ -14,11 +14,13 @@ Date:11.05.2019 */ +/////////////// structs ///////////////// struct UserInput { Direction d; float mag; }; +///////////// prototypes /////////////// void init(); void update_game(UserInput input); void render(); @@ -27,9 +29,11 @@ void print_level(); int quite(); +/////////////// objects /////////////// N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad pad; TankEngine Tank; +///////////// functions //////////////// //main function int main() {