testProgram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 Serial pc(PTC17, PTC16); // tx - PTC17, rx - PTC16
00004 DigitalOut led1(LED1);
00005 
00006 // main() runs in its own thread in the OS
00007 int main() {
00008     pc.printf("Hello World!\n");
00009     while (true) {
00010         pc.printf("A");
00011         led1 = !led1;
00012         wait(5);
00013     }
00014 }