C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Committer:
mazgch
Date:
Wed Nov 06 10:49:16 2013 +0000
Revision:
4:1fecbc981273
Parent:
2:4e0e24635b97
Child:
5:41b123533b79
use latest C027 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 4:1fecbc981273 4 DigitalOut myled(LED); // on rev A you should reasign the signal to A0
mazgch 0:7626456dca2c 5
mazgch 0:7626456dca2c 6 int main() {
mazgch 0:7626456dca2c 7 while(1) {
mazgch 4:1fecbc981273 8 myled = !myled;
mazgch 0:7626456dca2c 9 wait(0.2);
mazgch 0:7626456dca2c 10 }
mazgch 0:7626456dca2c 11 }