![](/media/cache/profiles/88620f53e8130fe210652d43137a905b.jpg.50x50_q85.jpg)
Procesadores, 2016 - II. Tarea #3. Oswaldo Andrés Giraldo Giraldo, Héctor Andrés Hoyos Ceballos, Jose Fernando Montoya Vargas, María Fernanda Villa Tamayo. Programa para establecer la comunicación con un sensor infrarrojo con el protocolo IrDA.
Dependencies: Pulse1 TextLCD mbed
Fork of TAREA_3_PID_IRDA by
Diff: main.cpp
- Revision:
- 0:74d57f8ae247
- Child:
- 2:6a15ab0305c8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 07 03:34:46 2013 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include <Pulse1.h> + +PulseInOut irda(PTD5); +Serial pc(USBTX, USBRX); +DigitalOut led(LED1); +int tiempo; + +int main(){ +while(1){ +tiempo = irda.read_high_us(); + led=1; + pc.printf("Header bajo dura %d us\n", tiempo); + wait(0.3); + led=0; + + } + } \ No newline at end of file