Yang Zhenye 201199680
Dependencies: mbed
Menu/Menu.h
- Committer:
- yangzhenye
- Date:
- 2020-04-30
- Revision:
- 2:baca89f466bc
- Child:
- 3:30c81344beff
File content as of revision 2:baca89f466bc:
#ifndef MENU_H #define MENU_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Engine.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 display_page2(); void display_page3(); void output(); void input(bool start, bool back, bool x); int _output; int _state; int _input; }; #endif