blink a led

Dependencies:   mbed

Revision:
13:769319201354
Parent:
12:8dab8b91a92c
Child:
14:a937e53670d2
diff -r 8dab8b91a92c -r 769319201354 main.cpp
--- a/main.cpp	Sat May 28 04:11:22 2016 +0000
+++ b/main.cpp	Sat May 28 06:32:09 2016 +0000
@@ -7,14 +7,14 @@
     
     // spin in a main loop all the time
     while(1) {
-        // turn on LED
+        // turn off LED
         myled = 1;
         
         // wait
         wait(0.2);
         
-        // YOUR CODE HERE : turn off the LED
-        
+        // YOUR CODE HERE : turn on the LED
+        myled = 0;
         
         // wait again
         wait(0.2);