HeatpumpIR library + sensors example to send IR commands to heatpumps
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user