Mechatronics example program

Dependencies:   mbed

Revision:
1:e450b69e093a
Parent:
0:fbfdf477cfd1
diff -r fbfdf477cfd1 -r e450b69e093a main.cpp
--- a/main.cpp	Thu Oct 05 07:44:05 2017 +0000
+++ b/main.cpp	Thu Oct 05 07:45:04 2017 +0000
@@ -7,6 +7,6 @@
     while(1) {
         myled = ~myled; // LED is toggled
 
-        printf("D[%1d]\n",d0);
+        printf("D[%1d]\n",d0.read());
     }
 }