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.
main.cpp
- Committer:
- JamesCummins
- Date:
- 2019-04-06
- Revision:
- 4:2f01b85e57f9
- Parent:
- 3:f2e5ffd2b94c
- Child:
- 5:7e8f5fad7b6b
File content as of revision 4:2f01b85e57f9:
/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds Name: James Nathan Cummins Username: el17jnc Student ID Number: 201096364 Date: 22/03/19 */ #include "Gamepad.h" #include "mbed.h" #include "N5110.h" Gamepad device(); N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); void startmenu(); int main(){ /*device.init();*/ lcd.init(); wait(1); startmenu(); } void startmenu() { lcd.clear(); char gamename[] = {'L', 'A', 'B', 'Y', 'R', 'I', 'N', 'T', 'H', '\0'}; int i = 0; 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); } }