aston aston / Mbed OS mbed-os-example-blinky-test

Fork of mbed-os-example-blinky by aston aston

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