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 FXOS8700CQ mbed-rtos
Diff: Characters/Charmander.cpp
- Revision:
- 22:f8f36e88b2ca
- Parent:
- 14:abe64fe0b6a5
- Child:
- 25:31111e6e13ad
--- a/Characters/Charmander.cpp Sun Apr 28 18:04:23 2019 +0000
+++ b/Characters/Charmander.cpp Sun Apr 28 18:58:10 2019 +0000
@@ -517,7 +517,8 @@
lcd.printString("and messages.",0,4);
lcd.drawSprite(39, 44, 4, 7, (int *)instruct_data);
lcd.refresh();
- if(pad.get_direction() == S){currentPage = PAGE_2;}
+ if(pad.get_direction() == S){currentPage = PAGE_2; pad.init_input();}
+ if(pad.get_direction() == N){currentPage = PAGE_1; pad.init_input();}
wait(1.0f/fps);
break;
case PAGE_2:
@@ -529,7 +530,8 @@
lcd.printString("around him,",0,4);
lcd.drawSprite(39, 44, 4, 7, (int *)instruct_data);
lcd.refresh();
- if(pad.get_direction() == S){currentPage = PAGE_3;}
+ if(pad.get_direction() == S){currentPage = PAGE_3; pad.init_input();}
+ if(pad.get_direction() == N){currentPage = PAGE_1; pad.init_input();}
wait(1.0f/fps);
break;
case PAGE_3:
@@ -538,6 +540,7 @@
lcd.printString("successfully?",0,1);
lcd.printString("Press B",0,5);
lcd.refresh();
+ if(pad.get_direction() == N){currentPage = PAGE_2; pad.init_input();}
wait(1.0f/fps);
break;
}