C027 Example: blinking LED

Dependencies:   C027-REVB mbed

Fork of C027_HelloWorld by u-blox

main.cpp

Committer:
dixter1
Date:
2013-12-14
Revision:
6:16ceb51fc1fc
Parent:
5:41b123533b79

File content as of revision 6:16ceb51fc1fc:

#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);
    }
}