C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

main.cpp

Committer:
mazgch
Date:
2013-10-18
Revision:
0:7626456dca2c
Child:
1:b2f5ffeed00b

File content as of revision 0:7626456dca2c:

#include "mbed.h"
#include "C027_PinNames.h"

DigitalOut myled(A0);
// connect a led between A0 and a GND pin to see the blinking

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