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: UserInteraction/UX.cpp
- Revision:
- 24:23fd6b451db7
- Parent:
- 21:a0904159e183
- Child:
- 30:43aace0fdbdf
--- a/UserInteraction/UX.cpp Tue Apr 30 13:17:14 2019 +0000
+++ b/UserInteraction/UX.cpp Wed May 01 08:46:44 2019 +0000
@@ -15,6 +15,7 @@
batPad.init();
_button_pressed=false;
}
+
int UX::get_a_pressed(){
int _a_pressed=0;
if (batPad.check_event(Gamepad::A_PRESSED) == true){
@@ -30,7 +31,7 @@
}
return _l_pressed;
}
-void UX::first_menu(N5110 &menu_lcd,Gamepad &pad){
+void UX::first_menu(N5110 &menu_lcd){
menu_lcd.clear();
menu_lcd.printString("HERO CRICKET",5,1);
menu_lcd.refresh();
@@ -231,17 +232,6 @@
wait(0.5);
menu_lcd.printString("GOOD LUCK!!!",0,5);
menu_lcd.refresh();
- int i=0;
- /*
- while (i<=10){
- batPad.leds_on();
- wait(0.1);
- batPad.leds_off();
- wait(0.1);
- i++;
- }
- */
wait(3);
-
}