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:
- 1:99d524f81566
- Parent:
- 0:7c96d84b673e
- Child:
- 3:f2e5ffd2b94c
--- a/main.cpp Wed Mar 27 20:21:07 2019 +0000 +++ b/main.cpp Tue Apr 02 20:31:10 2019 +0000 @@ -10,22 +10,25 @@ #include "Gamepad.h" #include "mbed.h" -#include "StartMenu.h" +#include "N5110.h" Gamepad gamepad(); N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); -StartMenu startmenu(); +void startmenu(); int main(){ - gamepad.init(); + /*gamepad.init();*/ lcd.init(); - startmenu.welcomeMsg(); + startmenu(); } - - - - - - +void startmenu() { + lcd.clear(); + char gamename[] = {'L', 'A', 'B', 'Y', 'R', 'I', 'N', 'T', 'H', '\0'}; + for (int i = 0; i < 9; i++) { + + lcd.printChar(gamename[i], i*6, 0); + lcd.refresh(); + wait(0.2); + } }