Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 17:b2b651acffae
- Parent:
- 14:122eaa3b7a50
diff -r 81a3aaf52647 -r b2b651acffae main.cpp
--- 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(){