Yamasho Yama / Mbed 2 deprecated mbed_print_test_for_mdk

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 DigitalOut myled(LED1);
00004 
00005 Serial pc(USBTX, USBRX); // tx, rx
00006 Serial tg(p9,p10); // tx, rx
00007 
00008 int main() {
00009     while(1) {
00010         pc.printf("test led1\n");
00011         tg.printf("test led1\n");
00012         myled = 1;
00013         wait(0.2);
00014         myled = 0;
00015         wait(0.2);
00016     }
00017 }