C027 Example: blinking LED

Dependencies:   C027-REVB mbed

Fork of C027_HelloWorld by u-blox

Committer:
dixter1
Date:
Sat Dec 14 01:27:06 2013 +0000
Revision:
6:16ceb51fc1fc
Parent:
5:41b123533b79
First Pass Hello World for Hardware Revision B, with bootup changes.

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
dixter1 6:16ceb51fc1fc 10 DigitalOut myled(LED);
mazgch 0:7626456dca2c 11
mazgch 0:7626456dca2c 12 int main() {
dixter1 6:16ceb51fc1fc 13
mazgch 0:7626456dca2c 14 while(1) {
dixter1 6:16ceb51fc1fc 15
mazgch 4:1fecbc981273 16 myled = !myled;
dixter1 6:16ceb51fc1fc 17
mazgch 0:7626456dca2c 18 wait(0.2);
mazgch 0:7626456dca2c 19 }
mazgch 0:7626456dca2c 20 }