Blink a LED for the tinycortex board

Dependencies:   mbed

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

Committer:
riktw
Date:
Tue Aug 11 21:04:24 2015 +0000
Revision:
0:01a5c6ce11e9
Blink a led for the Tinycortex board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
riktw 0:01a5c6ce11e9 1 #include "mbed.h"
riktw 0:01a5c6ce11e9 2 #include "pinout.h"
riktw 0:01a5c6ce11e9 3
riktw 0:01a5c6ce11e9 4 DigitalOut myled(LED1);
riktw 0:01a5c6ce11e9 5
riktw 0:01a5c6ce11e9 6 int main() {
riktw 0:01a5c6ce11e9 7 while(1) {
riktw 0:01a5c6ce11e9 8 myled = 1;
riktw 0:01a5c6ce11e9 9 wait(0.2);
riktw 0:01a5c6ce11e9 10 myled = 0;
riktw 0:01a5c6ce11e9 11 wait(0.2);
riktw 0:01a5c6ce11e9 12 }
riktw 0:01a5c6ce11e9 13 }