C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

main.cpp

Committer:
mazgch
Date:
2013-10-21
Revision:
2:4e0e24635b97
Parent:
1:b2f5ffeed00b
Child:
4:1fecbc981273

File content as of revision 2:4e0e24635b97:

#include "mbed.h"
#include "C027.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);
    }
}