C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Committer:
mazgch
Date:
Fri Dec 06 09:58:29 2013 +0000
Revision:
5:41b123533b79
Parent:
4:1fecbc981273
Child:
6:7fe1cbb784a4
pull in latest library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mazgch 0:7626456dca2c 1 #include "mbed.h"
mazgch 2:4e0e24635b97 2 #include "C027.h"
mazgch 0:7626456dca2c 3
mazgch 5:41b123533b79 4 #ifdef C027_REVA
mazgch 5:41b123533b79 5 // on rev A we reasign the signal to A0
mazgch 5:41b123533b79 6 #undef LED
mazgch 5:41b123533b79 7 #define LED A0
mazgch 5:41b123533b79 8 #endif
mazgch 5:41b123533b79 9
mazgch 5:41b123533b79 10 DigitalOut myled(LED);
mazgch 0:7626456dca2c 11
mazgch 0:7626456dca2c 12 int main() {
mazgch 0:7626456dca2c 13 while(1) {
mazgch 4:1fecbc981273 14 myled = !myled;
mazgch 0:7626456dca2c 15 wait(0.2);
mazgch 0:7626456dca2c 16 }
mazgch 0:7626456dca2c 17 }