C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Revision:
4:1fecbc981273
Parent:
2:4e0e24635b97
Child:
5:41b123533b79
--- a/main.cpp	Fri Oct 25 22:15:15 2013 +0000
+++ b/main.cpp	Wed Nov 06 10:49:16 2013 +0000
@@ -1,14 +1,11 @@
 #include "mbed.h"
 #include "C027.h"
 
-DigitalOut myled(A0);
-// connect a LED between A0 and a GND pin to see the blinking
+DigitalOut myled(LED); // on rev A you should reasign the signal to A0
 
 int main() {
     while(1) {
-        myled = 1;
-        wait(0.2);
-        myled = 0;
+        myled = !myled;
         wait(0.2);
     }
 }