Charles Tritt / Mbed 2 deprecated PWM_Driver_Serial

Dependencies:   mbed

Revision:
2:e0faf9e57796
Parent:
1:8e3c0c69a6ca
Child:
3:f879eeeb5e8d
--- a/main.cpp	Mon Mar 27 13:29:43 2017 +0000
+++ b/main.cpp	Mon Mar 27 14:20:32 2017 +0000
@@ -7,7 +7,7 @@
     toeliminate warning and int constants for HIGH and LOW.
     
     Written by: Dr. C. S. Tritt
-    Created: 3/26/17 (v. 1.0)
+    Created: 3/27/17 (v. 1.1)
     
 */
 #include "mbed.h"
@@ -33,6 +33,7 @@
         else {
           led.write(LOW);
         }
+        printf("LED = %d\n", (int) led.read()); // Send LED state via serial. 
         wait(0.25); // 250 ms
     }
 }