C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

main.cpp

Committer:
mazgch
Date:
2013-10-18
Revision:
1:b2f5ffeed00b
Parent:
0:7626456dca2c
Child:
2:4e0e24635b97

File content as of revision 1:b2f5ffeed00b:

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