Isaac Cruz
/
Practica_4_-_Ejercicio_01
p4e1
Diff: main.cpp
- Revision:
- 0:4450bc1017f2
diff -r 000000000000 -r 4450bc1017f2 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 16 00:37:25 2019 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +DigitalOut Blue(LED3); +Serial pc(USBTX,USBRX); +int main(){ + Blue=1; + pc.printf("La tecla presionada es: \r\n"); + while(1){ + Blue=0; + pc.putc(pc.getc()); //Se visualizara en la terminal (en este caso, la de Arduino). + } +} \ No newline at end of file