Day 3 Starts. A program where input would be incremented by one and obtained on the PC screen. (UART)

Dependencies:   mbed

main.cpp

Committer:
akashlal
Date:
2016-07-01
Revision:
0:becfe6860a16

File content as of revision 0:becfe6860a16:

#include "mbed.h"

Serial pc(USBTX,USBRX);

int main() {
    
    while(1) {
        if(pc.readable())
        {
        pc.putc(pc.getc()+1);    
        }
    }
}