Laboratoire APP3
Dependencies: mbed
main.cpp
- Committer:
- benjaminroy
- Date:
- 2017-02-09
- Revision:
- 1:333619c7ac99
- Parent:
- 0:638b592ccbf5
File content as of revision 1:333619c7ac99:
#include "mbed.h" DigitalOut dout(p8); Serial pc(USBTX, USBRX); // tx, rx Serial uart(p13, p14); // tx, rx int main() { dout = 0; wait(0.4); dout = 1; while(1) { if(pc.readable()) { uart.putc(pc.getc()); } if(uart.readable()) { pc.putc(uart.getc()); } } }