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: menu/Menu.h
- Revision:
- 26:4d193529b447
- Parent:
- 23:7be9701fc1b8
- Child:
- 27:354d91d59b6d
diff -r e551c09fa28b -r 4d193529b447 menu/Menu.h
--- a/menu/Menu.h Tue Apr 28 17:30:29 2020 +0000
+++ b/menu/Menu.h Tue Apr 28 17:39:26 2020 +0000
@@ -17,36 +17,8 @@
* @ 3 connect with the gamepad and makesure the game is working
* @ date April 27th 2020
* @ author Yaomochu
-
-* @code
-
-#include "N5110.h"
-#include "Gamepad.h"
-#include "mbed.h"
-#include "menu.h"
-
-N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
-Gamepad gamepad;
-menu _menu;
+*/
-int main() {
- gamepad.init();
- _menu.init();
- lcd.init();
- lcd.normalMode();
- lcd.setBrightness(0.5);
- while(1) {
-
- // clear, refresh lcd and run the menu.
- lcd.clear();
- _menu.run_engine(lcd, gamepad);
- lcd.refresh();
- wait(0.01);
- }
-}
-
-* @endcode
-*/
class Menu {
public: