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.

Files at this revision

API Documentation at this revision

Comitter:
manitou
Date:
Wed Apr 13 11:18:39 2016 +0000
Parent:
0:785739d5a30a
Commit message:
edit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 785739d5a30a -r af81e02b8c7b main.cpp
--- 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;