forked from ToniA/arduino-heatpumpir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMitsubishiSEZKDXXHeatpumpIR.h
42 lines (33 loc) · 1.51 KB
/
MitsubishiSEZKDXXHeatpumpIR.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
/*
Mitsubishi SEZ series SEZ_KD_VAL23/35 and so on remote W001CP
*/
#ifndef MitsubishiSEZKDXXHeatpumpIR_h
#define MitsubishiSEZKDXXaHeatpumpIR_h
#include <HeatpumpIR.h>
// Mitsubishi SEZ timing constants
#define MITSUBISHISEZ_AIRCON1_HDR_MARK 3060
#define MITSUBISHISEZ_AIRCON1_HDR_SPACE 1580
#define MITSUBISHISEZ_AIRCON1_BIT_MARK 350
#define MITSUBISHISEZ_AIRCON1_ONE_SPACE 1150
#define MITSUBISHISEZ_AIRCON1_ZERO_SPACE 390
#define MITSUBISHISEZ_AIRCON1_MSG_SPACE 0
// Mitsubishi SEZ codes
#define MITSUBISHISEZ_AIRCON1_MODE_AUTO 0x03 // Operating mode
#define MITSUBISHISEZ_AIRCON1_MODE_HEAT 0x02
#define MITSUBISHISEZ_AIRCON1_MODE_COOL 0x01
#define MITSUBISHISEZ_AIRCON1_MODE_DRY 0x05
#define MITSUBISHISEZ_AIRCON1_MODE_FAN 0x00
#define MITSUBISHISEZ_AIRCON1_MODE_OFF 0x00 // Power OFF - not real codes, but we need something...
#define MITSUBISHISEZ_AIRCON1_MODE_ON 0x40 // Power ON
#define MITSUBISHISEZ_AIRCON1_FAN1 0x32
#define MITSUBISHISEZ_AIRCON1_FAN2 0x34
#define MITSUBISHISEZ_AIRCON1_FAN3 0x36
class MitsubishiSEZKDXXHeatpumpIR : public HeatpumpIR
{
public:
MitsubishiSEZKDXXHeatpumpIR();
void send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd);
private:
void sendMitsubishiSEZKDXX(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature, uint8_t swingVCmd, uint8_t swingHCmd);
};
#endif