![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
LAB10_Oppgave2
Dependencies: mbed
Fork of LAB10_Oppgave2 by
main.cpp
- Committer:
- rlanghbv
- Date:
- 2015-11-04
- Revision:
- 1:c3e8496642b4
- Parent:
- 0:1fe30bae9dc1
- Child:
- 2:dc9d556924d9
File content as of revision 1:c3e8496642b4:
#include "mbed.h" Serial pc(USBTX, USBRX); // The pc has sendt a char to us void pcTxSrialData() { char rxData=pc.getc(); pc.putc(rxData); } int main() { //Listen for serial data from the PC pc.attach(&callback); while (1) { wait(1); } }