Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of YYY_Dragonfly_USBTerminal by
main.cpp
- Committer:
- BlueShadow
- Date:
- 2015-10-20
- Revision:
- 1:af87be58749e
- Parent:
- 0:46dc3fdbc97e
- Child:
- 2:69fe2640298a
File content as of revision 1:af87be58749e:
#include "mbed.h" int main() { // external serial port Serial ext(USBTX,USBRX ); // Serial ext(dbgTX/*PB_6*/,dbgRX/* PB_7*/ ); // Serial ext(PA_2, PA_3); // internal serial port to radio Serial radio(RADIO_TX, RADIO_RX); ext.baud(115200); radio.baud(115200); while (true) { if (ext.readable()) radio.putc(ext.getc()); if (radio.readable()) ext.putc(radio.getc()); } }