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
Diff: main.cpp
- Revision:
- 15:749c595b19e2
- Parent:
- 13:c3c58d50a571
--- a/main.cpp Thu May 09 06:19:58 2019 +0000
+++ b/main.cpp Thu May 09 07:53:59 2019 +0000
@@ -1,12 +1,3 @@
-/*
-ELEC2645 Embedded Systems Project
-School of Electronic & Electrical Engineering
-University of Leeds
-Name: Siuting Wong
-Username: Siuting Wong
-Student ID Number: 201186503
-Date: 06/05/2019
-*/
///////// pre-processor directives ////////
#include "mbed.h"
#include "Gamepad.h"
@@ -186,7 +177,6 @@
}
void init() {
-
// need to initialise LCD and Gamepad
lcd.init();
pad.init();
@@ -260,6 +250,7 @@
lcd.refresh();
wait(0.5);
}
+
lcd.clear(); // background story
lcd.printString("You are a",12,0);
lcd.printString("member of",15,1);
@@ -273,6 +264,7 @@
lcd.refresh();
wait(0.5);
}
+
while (pad.check_event(Gamepad::START_PRESSED) == false) { // tutorial with animation
lcd.clear();
lcd.printString("Use your",18,0);
@@ -441,5 +433,4 @@
lcd.refresh();
wait(0.5);
}
-
}
\ No newline at end of file