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:
- 9:f82627d119f6
- Parent:
- 0:d557f30e3a95
- Child:
- 13:4026781772cb
diff -r 30ad5229cc0b -r f82627d119f6 main.cpp
--- a/main.cpp Thu May 03 00:53:06 2018 +0000
+++ b/main.cpp Thu May 03 01:04:41 2018 +0000
@@ -6,4 +6,53 @@
Username: el15ww
Student ID Number: 200975452
Date:
-*/
\ No newline at end of file
+*/
+
+#include "mbed.h"
+#include "Gamepad.h"
+#include "N5110.h"
+#include "Snake.h"
+
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
+Gamepad pad;
+
+
+struct UserInput {
+ Direction d;
+ float mag;
+};
+
+
+void init();
+void render();
+void welcome();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+