ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
5:915bcac4e9b9
Parent:
4:55a0509c4874
Child:
6:3e50f2cf4366
--- a/main.cpp	Tue Apr 16 09:48:37 2019 +0000
+++ b/main.cpp	Tue Apr 16 10:17:21 2019 +0000
@@ -37,7 +37,10 @@
         wait(1.0f/fps);
     }
     */
+    float f;
     while(1){
+        f= pad.get_mag();
+        printf("MAG %f \n",f);
         ball.start(lcd);
         draw();
         wait(1.0f/fps);
@@ -52,7 +55,6 @@
     bat.init(4,5);
     ball.init(2,3);
     //field.init();
-    
     lcd.setContrast(0.4);
     lcd.normalMode();      // normal colour mode
     lcd.setBrightness(0.5);