WWW serwer SKM
Dependencies: SDFileSystem mbed
Fork of SKM_SERWER_WWW by
Diff: main.cpp
- Revision:
- 0:f682dcf80f00
- Child:
- 1:623f51ea713b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 23 11:20:37 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +//Simple program allowing user to send messages from mbed COM out through UART to another UART COM. +//Andrea Corrado +Serial pc(USBTX, USBRX); // tx, rx +Serial uart (PTC17, PTC16); + + +int main() +{ + while(1) { + if (pc.readable()) { + uart.putc(pc.getc()); + } + } +}