Demo / Mbed OS demo-blinky
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut led1(LED1);
00004 
00005 #ifdef FRED_EST
00006 //this is just a testafaaffa
00007 #endif
00008 
00009 // main() runs in its own thread in the OS
00010 // (note the calls to Thread::wait below for delays)
00011 int main() {
00012     while (true) {
00013         led1 = !led1;
00014         Thread::wait(500);
00015     }
00016 }
00017