ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_ll17lrc_v2

Dependencies:   mbed

Revision:
12:299479b6bb59
Parent:
11:7a4abe731f9c
Child:
13:fd290d2fd917
--- a/Imposs/ImpossEngine.cpp	Mon May 25 16:40:59 2020 +0000
+++ b/Imposs/ImpossEngine.cpp	Tue May 26 18:16:31 2020 +0000
@@ -57,6 +57,22 @@
     if (level == 5){
          _five.draw(lcd);
     }
+    
+    if (level == 6){
+        while(1){
+            lcd.clear();
+            lcd.printString("  Well done!  ",0,0);
+            lcd.printString(" You beat all ",0,1);
+            lcd.printString("of the levels!",0,2);
+            lcd.printString("Press reset to",0,3);
+            lcd.printString("  try again!  ",0,4);
+            pad.leds_on();
+            wait(0.15);
+            pad.leds_off();
+            wait(0.15);
+            lcd.refresh();
+            }    
+    }
          
     _ball.update(_d,pad);