HeatpumpIR library + sensors example to send IR commands to heatpumps

This commit is contained in:
ToniA
2015-09-29 20:21:42 +03:00
parent 1b8c87704c
commit c9ffef8da3
42 changed files with 4004 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
Class to send IR signals using the Arduino PWM
*/
#ifndef IRSender_h
#define IRSender_h
#include <Arduino.h>
class IRSender
{
public:
IRSender(byte pin);
void setFrequency(int frequency);
void sendIRByte(byte sendByte, int bitMarkLength, int zeroSpaceLength, int oneSpaceLength);
byte bitReverse(byte x);
void space(int spaceLength);
void mark(int markLength);
private:
byte _pin;
};
#endif