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:
- 3:30c81344beff
- Child:
- 4:eb8dca1dc341
diff -r baca89f466bc -r 30c81344beff main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri May 08 09:09:49 2020 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "Gamepad.h"
+#include "N5110.h"
+#include "Menu.h"
+
+
+// objects
+Gamepad gamepad;
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
+Menu _menu;
+
+int main()
+{ gamepad.init();
+ _menu.init();
+ lcd.init();
+ lcd.normalMode();
+ lcd.setBrightness(0.5);
+ while(1) {
+ lcd.clear();
+ _menu.run(lcd, gamepad);
+ lcd.refresh();
+ wait(0.01); }
+}