aa

Dependencies:   mbed

main.cpp

Committer:
physicraftls
Date:
2014-12-15
Revision:
0:150ac7021bae

File content as of revision 0:150ac7021bae:

#include "mbed.h"              
 
Serial pc(USBTX, USBRX);
//Serial pc(D2,D3);
DigitalOut d(LED_GREEN);
 
int main() {
    pc.printf("Echoes back to the screen anything you type\r\n");
    while(1) {
        int i = pc.getc();
        pc.putc(i);//why doesnt work without + or +0
        //if (i == 'a') d = false;
        //else if (i == 's') d = true;
        //pc.putc('\n');
        pc.printf("\r\n");
        //pc.printf("aaaaa %d \n",i);
        //wait(1.0f);
    }
}