forked from ToniA/arduino-heatpumpir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BalluHeatpumpIR.h
44 lines (34 loc) · 1.22 KB
/
BalluHeatpumpIR.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
Ballu heatpump control
*/
#ifndef BalluHeatpumpIR_h
#define BalluHeatpumpIR_h
#include <HeatpumpIR.h>
// BALLU timing constants
#define BALLU_AIRCON_HDR_MARK 9300 //
#define BALLU_AIRCON_HDR_SPACE 4550 //
#define BALLU_AIRCON_BIT_MARK 500 //
#define BALLU_AIRCON_ZERO_SPACE 500 //
#define BALLU_AIRCON_ONE_SPACE 1650 //
#define BALLU_AIRCON_MSG_SPACE 0 //
// BALLU codes
//#define BALLU_AIRCON_MODE_AUTO 0x00 // Operating mode
#define BALLU_AIRCON_MODE_HEAT 0x00
#define BALLU_AIRCON_MODE_COOL 0x02
#define BALLU_AIRCON_MODE_DRY 0x03
#define BALLU_AIRCON_MODE_FAN 0x04
#define BALLU_AIRCON_MODE_OFF 0x04 // Power OFF
#define BALLU_AIRCON_MODE_ON 0x00
#define BALLU_AIRCON_FAN_AUTO 0x00 // Fan speed
#define BALLU_AIRCON_FAN1 0x01 // max
#define BALLU_AIRCON_FAN2 0x02
#define BALLU_AIRCON_FAN3 0x03 // min
class BalluHeatpumpIR : public HeatpumpIR
{
public:
BalluHeatpumpIR();
void send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd);
private:
void sendBallu(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature);
};
#endif