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:
- 4:2f01b85e57f9
- Parent:
- 3:f2e5ffd2b94c
- Child:
- 5:7e8f5fad7b6b
--- a/main.cpp Sat Apr 06 14:50:43 2019 +0000 +++ b/main.cpp Sat Apr 06 15:11:17 2019 +0000 @@ -12,13 +12,14 @@ #include "mbed.h" #include "N5110.h" -Gamepad gamepad(); +Gamepad device(); N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); void startmenu(); int main(){ - /*gamepad.init();*/ + /*device.init();*/ lcd.init(); + wait(1); startmenu(); } @@ -26,9 +27,13 @@ lcd.clear(); char gamename[] = {'L', 'A', 'B', 'Y', 'R', 'I', 'N', 'T', 'H', '\0'}; int i = 0; - for (i = 0; i < 9; i++) { - lcd.printChar(gamename[i], 15+i*6, 2); - lcd.refresh(); - wait(0.2); - } + for(int a = 0; a < 30; a++){ + lcd.clear(); + lcd.drawCircle(24+2*a, 21, 3, FILL_BLACK); + for (i = 0; i < a/3; i++) { + lcd.printChar(gamename[i], 15+i*6, 2); + lcd.refresh(); + } + wait(0.05); + } }