main.cpp

Committer:
MPybus
Date:
2013-05-01
Revision:
0:0d359c595390

File content as of revision 0:0d359c595390:

#include "mbed.h"              
 
Serial pc(USBTX, USBRX); // tx, rx
DigitalOut led1(PTB8);
Serial other(PTD2, PTD3);
 
int main() {
char c;
char d;
    pc.printf("Hello World\n");
    while(1){
    c=pc.getc();
    d=PTD3;
    other.printf("%c",c);
    pc.printf("%c",d);
    
    led1=(~c);
    
    wait(0.1);
    }
}