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

Files at this revision

API Documentation at this revision

Comitter:
cristea
Date:
Wed Aug 06 13:29:51 2014 +0000
Parent:
17:6375c75a88a5
Child:
19:727d9124e11f
Commit message:
Use IRSender lib

Changed in this revision

IRSender.lib Show annotated file Show diff for this revision Revisions of this file
TxIR.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IRSender.lib	Wed Aug 06 13:29:51 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/Nordic-Pucks/code/IRSender/#4576fcd93ffd
--- a/TxIR.lib	Tue Aug 05 08:54:25 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/sigveseb/code/TxIR/#1f89d6278243
--- 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];
 }