Stephen Ralph / Mbed 2 deprecated Asteroids

Dependencies:   mbed 4DGL-uLCD-SE PinDetect

Files at this revision

API Documentation at this revision

Comitter:
sralph3
Date:
Fri Nov 30 06:33:17 2018 +0000
Parent:
5:52f97dae8794
Child:
7:b5372b042ac7
Commit message:
fin

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Nov 30 06:27:03 2018 +0000
+++ b/main.cpp	Fri Nov 30 06:33:17 2018 +0000
@@ -182,7 +182,7 @@
         double tw = (t/30)*SCREEN_MAX;
         uLCD.filled_rectangle(0, 0 , SCREEN_MAX-ceil(tw) , 5, G);
         
-        if (timeElapsed >= 2){
+        if (timeElapsed >= 30){
             mySpeaker.PlayNote(600.0,0.25,0.2);
             mySpeaker.PlayNote(800.0,0.25,0.1);
             mySpeaker.PlayNote(900.0,0.25,0.1);