ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
17:b2b651acffae
Parent:
14:122eaa3b7a50
--- a/main.cpp	Wed Apr 24 21:17:22 2019 +0000
+++ b/main.cpp	Sat Apr 27 14:09:21 2019 +0000
@@ -19,6 +19,7 @@
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
 Gamepad pad;
 Cricket cricket;
+Bat bat;
 
 
 void init();
@@ -30,16 +31,19 @@
 int main(){
     int fps=10;
     init();
+    //bat.first_menu(lcd);
    // welcome();
-    draw();
+    //draw();
     //float f; 
     //int status=0;
+    
     while(1){
         //Direction dir=pad.get_direction();
         cricket.game(lcd,pad);
         draw();
         wait(1.0f/fps);                
     }
+    
     /*
     while(1){
         ball.reset();
@@ -85,8 +89,6 @@
 void draw(){
     lcd.clear();
     cricket.draw(lcd);
-    //ball1.draw(lcd);
-    //bat1.draw(lcd);
     lcd.refresh();
 }
 /*void ball_test(){