mbed_example / Mbed OS Wait_HelloWorld
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut heartbeat(LED1);
00004 
00005 int main() {
00006     while (1) {
00007         heartbeat = 1;
00008         wait(0.5);
00009         heartbeat = 0;
00010         wait(0.5);
00011     }
00012 }