Blink a LED for the tinycortex board

Dependencies:   mbed

A blink a led for the Tinycortex board. More info: http://justanotherelectronicsblog.com/?p=124

Files at this revision

API Documentation at this revision

Comitter:
riktw
Date:
Tue Aug 11 21:04:24 2015 +0000
Commit message:
Blink a led for the Tinycortex board

Changed in this revision

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
pinout.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 01a5c6ce11e9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 11 21:04:24 2015 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "pinout.h"
+
+DigitalOut myled(LED1);
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
diff -r 000000000000 -r 01a5c6ce11e9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Aug 11 21:04:24 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5
\ No newline at end of file
diff -r 000000000000 -r 01a5c6ce11e9 pinout.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pinout.h	Tue Aug 11 21:04:24 2015 +0000
@@ -0,0 +1,43 @@
+
+
+#ifndef PINOUT_H
+#define PINOUT_H
+
+#include "mbed.h"
+
+#define IC1 P1_25
+#define IC2 P1_19
+#define IC3 P0_20
+#define IC4 P0_2
+#define IC5 P1_26
+#define IC6 P1_27
+#define IC7 P1_20
+#define IC8 P0_4
+#define IC9 P0_5
+#define IC10 P0_21
+#define IC11 P1_23
+#define IC12 P1_24
+#define IC13 P1_28
+#define IC14 P1_21
+#define IC15 P0_8
+#define IC16 P0_9
+#define IC17 P0_22
+#define IC18 P1_29
+#define IC19 P0_11
+#define IC20 P0_12
+#define IC21 P0_13
+#define IC22 P0_14
+#define IC23 P1_13
+#define IC24 P1_14
+#define IC25 P1_22
+#define IC26 P0_16
+#define IC27 P0_23
+#define IC28 P1_15
+#define IC29 P0_17
+#define IC30 P0_18
+#define IC31 P0_19
+#define IC32 P1_16
+#define IC33 P1_31
+#define LED1 P0_7
+
+#endif
\ No newline at end of file