IR remote test, based on Arduino IRRemote lib.

Dependencies:   mbed

IR remote test, based on Arduino IRremote lib.

https://www.pjrc.com/teensy/td_libs_IRremote.html

Uses PWM for carrier and timer for 50us sensor reads. for k64f, one could use CMT.

Revision:
1:af81e02b8c7b
Parent:
0:785739d5a30a
--- a/main.cpp	Wed Apr 13 11:14:58 2016 +0000
+++ b/main.cpp	Wed Apr 13 11:18:39 2016 +0000
@@ -6,7 +6,6 @@
      IR LED xmit   pin to 100ohm to +IR  - to grnd (short/flat)
     use timer 50us to count mark/space on input
     is it possible to run both xmit and recv?
-
 */
 #include "mbed.h"
 #include "IRremote.h"
@@ -20,7 +19,7 @@
 
 PwmOut pwm(PWMPin);
 DigitalIn recvpin(RecvPin);
-DigitalOut testpin(TestPin);    // jumper to D8 for test
+DigitalOut testpin(TestPin);    // jumper to RecvPin for test
 DigitalOut myled(LED1);
 
 volatile unsigned long myticks;