submit

Dependencies:   mbed Gamepad N5110

Revision:
15:4123abb17291
Parent:
14:e1f7b4be1cf2
Child:
16:a52b2441c5ae
--- a/main.cpp	Mon Apr 22 07:22:56 2019 +0000
+++ b/main.cpp	Mon Apr 22 09:59:39 2019 +0000
@@ -23,9 +23,9 @@
     int fps = 8;  // frames per second
     snake.hscore = 0;
     lcd.init();
-    pad.tone(1500.0,0.5);
     while(1){    
-      init(); 
+      init();
+      pad.tone(1500.0,0.5);
       engine.welcome(pad,lcd);  // show welcome display, waiting for the user to start
       engine.menu(pad,lcd);  // show the select display, waiting for the user to select
     // game loop - read input, update the game state and render the display