ir-puck

Dependencies:   IRSender Puck mbed

Fork of ir-puck by Nordic Pucks

Files at this revision

API Documentation at this revision

Comitter:
cristea
Date:
Wed Aug 06 13:29:51 2014 +0000
Parent:
17:6375c75a88a5
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
diff -r 6375c75a88a5 -r e96a99547f54 IRSender.lib
--- /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
diff -r 6375c75a88a5 -r e96a99547f54 TxIR.lib
--- 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
diff -r 6375c75a88a5 -r e96a99547f54 main.cpp
--- 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];
 }