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:
- 18:e58a1f8e72ad
- Parent:
- 15:47ea86f1ed70
- Child:
- 20:980b37fde361
--- a/main.cpp Tue May 08 11:38:55 2018 +0000
+++ b/main.cpp Tue May 08 12:38:36 2018 +0000
@@ -25,6 +25,7 @@
+
struct UserInput {
Direction d;
float mag;
@@ -35,6 +36,13 @@
init();
welcome();
while (1) {
+ if ((engine.clision == 1)) {
+ init();
+ welcome();
+ render();
+ wait(0.03f);
+ engine.clision = 0;
+ }
engine.read_input(pad);
engine.update(pad, lcd);
@@ -84,4 +92,6 @@
}
+
+