The default Hello World program, used when you create a new program

Dependencies:   mbed

Dependents:   stateScript dc_motor mbed_blinkylook ElektronikerSchnupperlehreAufgabe1

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

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