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:
Fri Oct 18 13:14:52 2013 +0000
Child:
1:b2f5ffeed00b
Commit message:
Hello World Example (blinky on A0)

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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C027.lib	Fri Oct 18 13:14:52 2013 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mazgch/code/C027/#b54777b90da1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 18 13:14:52 2013 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "C027_PinNames.h"
+
+DigitalOut myled(A0);
+// connect a led between A0 and a GND pin to see the blinking
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 18 13:14:52 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file