ELEC2645 (2018/19) / Mbed 2 deprecated 2645_Project_SiutingWong201186503

Dependencies:   mbed

Revision:
3:53f0365461c0
Parent:
2:00a3edbe39b0
Child:
4:fcd80b40f257
--- a/main.cpp	Wed May 08 20:01:46 2019 +0000
+++ b/main.cpp	Wed May 08 20:13:48 2019 +0000
@@ -86,11 +86,23 @@
 }
 
 void endgame() {
-    
-    while ( pad.check_event(Gamepad::START_PRESSED) == false) {
-        lcd.clear();
-        lcd.printString("Eternity Stone",0,1);
+    lcd.clear();
+        lcd.printString("Endgame",12,1);
         lcd.refresh();
-        wait(0.1);
+    pad.tone(587.3,0.9);
+    pad.tone(0.0,0.1);
+    pad.tone(587.3,0.9);
+    pad.tone(0.0,0.1);
+    pad.tone(587.3,0.9);
+    pad.tone(0.0,0.1);
+    pad.tone(698.5,0.6);
+    pad.tone(659.3,0.3);
+    pad.tone(0.0,0.1);
+    pad.tone(659.3,0.6);
+    pad.tone(587.3,0.3);
+    pad.tone(0.0,0.1);
+    pad.tone(554.4,0.6);
+    pad.tone(587.3,0.3);
+    wait(0.1);
     }
 }
\ No newline at end of file