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.
Diff: main.cpp
- Revision:
- 9:ce0a12fb205b
- Parent:
- 8:4e306b16a941
- Child:
- 10:40c77d69e83c
--- a/main.cpp Mon Apr 08 12:45:44 2019 +0000 +++ b/main.cpp Wed Apr 10 12:54:56 2019 +0000 @@ -18,12 +18,13 @@ int menu(); -////////////////Main Command/////////////////// +////////////////Main Command////////////////// int main(){ gamepad.init(); lcd.init(); + lcd.setContrast(0.55); wait(1); startscreen(); int choice_selected = menu(); @@ -73,7 +74,7 @@ }; int state = 0; //start with the arrow on the top option int next = 2; //next_state = 2 so that by default it doesn't change arrow position - while(!gamepad.check_event(gamepad.A_PRESSED)){ + while(!(gamepad.get_direction() == E)){ state = fsm[state].next_state[next]; lcd.clear(); if(gamepad.get_direction() == N){ next = 0;} @@ -84,7 +85,7 @@ lcd.printString("Classic", 36, 0); lcd.printString("BrickBreak", 18, 2); lcd.printString("Options", 36, 4); - lcd.printString("(Click A)", 30, 5); + lcd.printString("(Joy R>>)", 30, 5); lcd.refresh(); wait(0.25); }