The IR Puck can mimic arbitrary infrared remote controls. Built on the Puck IOT platform.

Dependencies:   Puck IRSender mbed

The IR Puck is a puck that can mimic arbitrary infrared remote controls. This is useful for controlling things like TVs, radios, airconditioners, window blinds, and just about anything and everything that can be otherwise be controlled by a regular remote control.

A tutorial for the IR Puck is available on GitHub.

Tutorials and in-depth documentation for the Puck platform is available at the project's GitHub page

Revision:
18:e96a99547f54
Parent:
17:6375c75a88a5
Child:
19:727d9124e11f
--- a/main.cpp	Tue Aug 05 08:54:25 2014 +0000
+++ b/main.cpp	Wed Aug 06 13:29:51 2014 +0000
@@ -15,7 +15,7 @@
  */
 
 #include "mbed.h"
-#include "TxIR.hpp"
+#include "IRSender.h"
 
 #define LOG_LEVEL_ERROR
 #include "Log.h"
@@ -23,7 +23,7 @@
 
 Puck* puck = &Puck::getPuck();
 
-TxIR txir(p14);
+IRSender irpin(p14);
 
 const UUID IR_SERVICE_UUID = stringToUUID("bftj ir         ");
 const UUID COMMAND_UUID    = stringToUUID("bftj ir command ");
@@ -46,7 +46,7 @@
         case COMMAND_END_CODE_TRANSMISSION:
             puck->getBle().disconnect();
             LOG_INFO("Going to fire IR code...\n");
-            txir.txSeq(period, receiveIndex, dataBuffer);
+            irpin.irSeq(period, receiveIndex, dataBuffer);
             LOG_INFO("Fire complete!\n");
             break;
     }
@@ -61,7 +61,7 @@
 
 
 void onPeriodWrite(uint8_t* value) {
-    period = value[0];    
+    period = value[0];
 }