serial test code for custom boards

Dependencies:   MODSERIAL mbed

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(USBTX, USBRX);
00004  
00005 int main() {
00006     pc.printf("Echoes back to the screen anything you type\n");
00007     while(1) {
00008         pc.putc(pc.getc());
00009     }
00010 }