1

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

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 
00006 // main() runs in its own thread in the OS
00007 // (note the calls to Thread::wait below for delays)
00008 int main() {
00009     while (true) {
00010         led1 = !led1;
00011         Thread::wait(1500);
00012     }
00013 }
00014