
Echo characters on a serial port using the MultiTech Dragonfly.
Dependencies: mbed
main.cpp
- Committer:
- mfiore
- Date:
- 2015-10-02
- Revision:
- 0:d88fbcdff4fb
- Child:
- 1:ded5da421bd0
File content as of revision 0:d88fbcdff4fb:
/** Dragonfly Serial Example Program * * This program demonstrates how to do handle a serial port * using the MultiTech Dragonfly and MultiTech UDK2 hardware. * * This program echos characters on the debug serial port. * The debug serial port is operated at the default baud, 9600. * Connect your terminal application to the appropriate COM/tty * port on your PC. See https://developer.mbed.org/handbook/SerialPC * for details. */ #include "mbed.h" int main() { Serial pc(USBTX, USBRX); while (true) if (pc.readable()) pc.putc(pc.getc()); }