C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

main.cpp

Committer:
mazgch
Date:
2013-12-06
Revision:
5:41b123533b79
Parent:
4:1fecbc981273
Child:
6:7fe1cbb784a4

File content as of revision 5:41b123533b79:

#include "mbed.h"
#include "C027.h"

#ifdef C027_REVA
 // on rev A we reasign the signal to A0
 #undef  LED
 #define LED A0
#endif

DigitalOut myled(LED); 

int main() {
    while(1) {
        myled = !myled;
        wait(0.2);
    }
}