new

Dependencies:   mbed

main.cpp

Committer:
aidanPJG
Date:
2015-07-03
Revision:
0:e4c4836c31fc

File content as of revision 0:e4c4836c31fc:

#include "mbed.h"

DigitalOut myled(LED1);
 Serial pc(USBTX, USBRX); // tx, rx
 
int main() {
    while(1) 
    {
        if(pc.readable()) {
            device.putc(pc.getc());
    
    }
}