example program for the dot

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 int main() {
00004     DigitalOut led(LED1);
00005     Serial ser(USBTX, USBRX);
00006     
00007     while(true) {
00008         led = !led;
00009         ser.printf("hello world!");
00010         wait(2);
00011     }
00012 }