C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #ifdef TARGET_UBLOX_C027
00003  #include "C027_api.h"
00004 #else
00005  #error "This example is targeted for the C027 platform"
00006 #endif
00007 
00008 DigitalOut myled(LED); 
00009 
00010 int main() {
00011     while(1) {
00012         myled = !myled;
00013         wait(0.2);
00014     }    
00015 }