Yang Zhenye 201199680
Dependencies: mbed
Menu/Menu.h
- Committer:
- yangzhenye
- Date:
- 2020-05-13
- Revision:
- 4:eb8dca1dc341
- Parent:
- 3:30c81344beff
- Child:
- 5:fcad75e9b9e1
File content as of revision 4:eb8dca1dc341:
#ifndef MENU_H #define MENU_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "RooneyEngine.h" struct State { int output; int next_state[4]; } class Menu { public: Menu(); ~Menu(); void init(); void run(N5110 &lcd, Gamepad &gamepad); private: void dispaly_page1(); void run_engine(N5110 &lcd, Gamepad &gamepad); void display_page2(); void display_page3(); void output(); void input(bool start, bool back, bool x); int _output; int _state; int _input; }; #endif