Serial signal

Dependencies:   mbed

Committer:
HEPTA
Date:
Wed Jun 06 12:32:42 2018 +0000
Revision:
0:e0256162ec80
aaa;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HEPTA 0:e0256162ec80 1 #include "mbed.h"
HEPTA 0:e0256162ec80 2
HEPTA 0:e0256162ec80 3 Serial pc(USBTX,USBRX);
HEPTA 0:e0256162ec80 4 Serial sig(p13,p14);
HEPTA 0:e0256162ec80 5
HEPTA 0:e0256162ec80 6 int main() {
HEPTA 0:e0256162ec80 7 char c;
HEPTA 0:e0256162ec80 8 while(1) {
HEPTA 0:e0256162ec80 9 c = pc.getc();
HEPTA 0:e0256162ec80 10 pc.putc(c);
HEPTA 0:e0256162ec80 11 sig.putc(c);
HEPTA 0:e0256162ec80 12 }
HEPTA 0:e0256162ec80 13 }