C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Wed Nov 06 10:49:16 2013 +0000
Parent:
3:ec11f1417df7
Child:
5:41b123533b79
Commit message:
use latest C027 library

Changed in this revision

C027.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027.lib	Fri Oct 25 22:15:15 2013 +0000
+++ b/C027.lib	Wed Nov 06 10:49:16 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027/#e3eab86f1de9
+http://mbed.org/teams/ublox/code/C027/#bc9e2eb5daa8
--- 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);
     }
 }