Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
1:b0fc2c9a5d06
Parent:
0:44fc57e03a56
Child:
4:41bbbaecd322
--- a/main.cpp	Tue Oct 25 21:40:31 2016 +0000
+++ b/main.cpp	Wed Nov 09 20:14:31 2016 +0000
@@ -6,8 +6,7 @@
 
 int main() {
     pc.baud(9600);
-    uint32_t ha = 0;
-    pc.printf("Getting values");
+    pc.printf("Getting values\r\n");
     while(1)
     {
         if(ain > 0.3f) {
@@ -15,8 +14,7 @@
         } else {
             dout = 0;
         }
-        ha++;
         wait(0.1);
-        pc.printf("The number is %d, and the value is %f\r\n",ha, ain.read());
+        pc.printf("The value is %f\r\n", ain.read());
     }
 } 
\ No newline at end of file