Fork of DigitalOut_HelloWorld

Fork of DigitalOut_HelloWorld by mbed_example

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

Revision:
6:4b14e87b65e9
Parent:
5:e17647bbb68e
Child:
7:21a83a7b8f94
--- a/main.cpp	Fri Mar 27 21:11:22 2015 +0000
+++ b/main.cpp	Fri Mar 27 21:15:35 2015 +0000
@@ -18,11 +18,12 @@
 DigitalOut myled(LED1);
 
 int main() {
-    int connected = myled.is_connected();   // check that myled object is initialized and connected to a pin
-    if(connected){
-        printf("myleD is initialized and connected!\n\r");
+    // check that myled object is initialized and connected to a pin
+    if(myled.is_connected()){
+        printf("myled is initialized and connected!\n\r");
     }
     
+    // Blink LED
     while(1) {
         myled = 1;          // set LED1 pin to high
         printf("\n\r myled = %d",myled);