This is a very simple guide, reviewing the steps required to get Blinky working on an mbed OS platform. by ST

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 //stephen commit FW v001
00003 DigitalOut led1(LED1);
00004 
00005 // main() runs in its own thread in the OS
00006 int main() {
00007     while (true) {
00008         led1 = !led1;
00009         wait(0.6); // modify 0.5 to 0.6
00010     }
00011 }
00012