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
Menu Class Reference
#include <Menu.h>
Public Member Functions | |
| Menu () | |
| Constructor. | |
| ~Menu () | |
| Destructor. | |
| void | init () |
| Initialises the Menu object. | |
| void | run (N5110 &lcd, Gamepad &gamepad) |
| Runs the menu via a state machine. | |
Detailed Description
Menu Class.
Class to control the overall state of the game
- Date:
- April 2019
#include "N5110.h" #include "Gamepad.h" #include "mbed.h" #include "Menu.h" N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad gamepad; Menu menu; void init_game(); 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(lcd, gamepad); lcd.refresh(); wait(0.01); } }
Definition at line 53 of file Menu.h.
Constructor & Destructor Documentation
Member Function Documentation
Generated on Mon Jul 18 2022 14:06:02 by
1.7.2