Simple Serial Echo program for the LandTiger Board, using COM2 port/connector

Dependencies:   mbed

main.cpp

Committer:
alex_G_blanco
Date:
2016-03-05
Revision:
0:498d68e9665f

File content as of revision 0:498d68e9665f:

#include "mbed.h"

//Serial echo for the LandTiger board
Serial pc(P0_10, P0_11); //tx, rx pins for the Landtiger, COM2 UART2 connector 

int main() {
    pc.printf("hello world\n");
    while(1) {
        pc.putc(pc.getc()); //character echo
    }
}