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:
16:0891823672f4
Parent:
15:cf6c517f31ad
Child:
17:6375c75a88a5
--- a/main.cpp	Fri Aug 01 13:46:03 2014 +0000
+++ b/main.cpp	Fri Aug 01 14:02:19 2014 +0000
@@ -14,7 +14,7 @@
 const UUID DATA_UUID       = stringToUUID("bftj ir data    ");
 const UUID PERIOD_UUID     = stringToUUID("bftj ir period  ");
 
-#define DATA_BUFFER_SIZE 100
+#define DATA_BUFFER_SIZE 200
 unsigned int dataBuffer[DATA_BUFFER_SIZE];
 uint8_t period = 26;
 int receiveIndex;
@@ -30,7 +30,7 @@
         case COMMAND_END_CODE_TRANSMISSION:
             puck->getBle().disconnect();
             LOG_INFO("Going to fire IR code...\n");
-            txir.txSeq(period, DATA_BUFFER_SIZE, dataBuffer);
+            txir.txSeq(period, receiveIndex, dataBuffer);
             LOG_INFO("Fire complete!\n");
             break;
     }