Fork of DigitalOut_HelloWorld

Fork of DigitalOut_HelloWorld by mbed_example

Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing

Revision:
5:e17647bbb68e
Parent:
4:340f9fb00d71
Child:
6:4b14e87b65e9
--- a/main.cpp	Fri Mar 27 20:13:58 2015 +0000
+++ b/main.cpp	Fri Mar 27 21:11:22 2015 +0000
@@ -19,7 +19,10 @@
 
 int main() {
     int connected = myled.is_connected();   // check that myled object is initialized and connected to a pin
-    printf("myleD connection stattus = %d", connected);
+    if(connected){
+        printf("myleD is initialized and connected!\n\r");
+    }
+    
     while(1) {
         myled = 1;          // set LED1 pin to high
         printf("\n\r myled = %d",myled);