Yang Zhenye 201199680
Dependencies: mbed
Diff: Menu/Menu.cpp
- Revision:
- 9:a5a82b3d1102
- Parent:
- 8:c02c278320c0
--- a/Menu/Menu.cpp Thu May 14 18:30:55 2020 +0000 +++ b/Menu/Menu.cpp Fri May 15 07:27:23 2020 +0000 @@ -77,12 +77,13 @@ _input = 3;} } void Menu::get_output(N5110 &lcd, Gamepad &gamepad) { - if (_output == 0) { - display_page1(lcd, gamepad); + if (_output == 0) { run_engine(lcd, gamepad); } else if(_output == 1) { - display_page2(lcd, gamepad); - run_engine(lcd, gamepad); } + display_page1(lcd, gamepad); + // display_page2(lcd, gamepad); + // run_engine(lcd, gamepad); + } else if(_output == 2) { display_page3(lcd, gamepad); } } //display the three pages @@ -93,9 +94,9 @@ lcd.printString("X - instruction",0,5); lcd.drawSprite(1,60,30,80,(int*)_sprite); } -void Menu::display_page2(N5110 &lcd, Gamepad &gamepad) { - lcd.printString("It is Rooney turn!",0,0); -} +//void Menu::display_page2(N5110 &lcd, Gamepad &gamepad) { +// lcd.printString("It is Rooney turn!",0,0); +//} void Menu::display_page3(N5110 &lcd, Gamepad &gamepad) { lcd.printString("joystick - ",0,1);