Adjust timings for Gree I-Feel messages

This commit is contained in:
Clifford Roche 2021-11-02 14:23:07 -04:00
parent bc737c0c80
commit 28f6da295b
No known key found for this signature in database
GPG Key ID: 4478DF7BBBD3B1FA
2 changed files with 10 additions and 5 deletions

View File

@ -329,14 +329,14 @@ void GreeYACHeatpumpIR::send(IRSender& IR, uint8_t currentTemperature)
IR.setFrequency(38);
// Send Header mark
IR.mark(GREE_AIRCON1_HDR_MARK);
IR.space(GREE_AIRCON1_HDR_SPACE);
IR.mark(GREE_YAC_HDR_MARK);
IR.space(GREE_YAC_HDR_SPACE);
// send payload
IR.sendIRbyte(GreeTemplate[0], GREE_AIRCON1_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
IR.sendIRbyte(GreeTemplate[1], GREE_AIRCON1_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
IR.sendIRbyte(GreeTemplate[0], GREE_YAC_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
IR.sendIRbyte(GreeTemplate[1], GREE_YAC_BIT_MARK, GREE_AIRCON1_ZERO_SPACE, GREE_AIRCON1_ONE_SPACE);
// End mark
IR.mark(GREE_AIRCON1_BIT_MARK);
IR.mark(GREE_YAC_BIT_MARK);
IR.space(0);
}

View File

@ -14,6 +14,11 @@
#define GREE_AIRCON1_ZERO_SPACE 540
#define GREE_AIRCON1_MSG_SPACE 19000
// Timing specific for YAC features (I-Feel mode)
#define GREE_YAC_HDR_MARK 6000
#define GREE_YAC_HDR_SPACE 3000
#define GREE_YAC_BIT_MARK 650
// Power state
#define GREE_AIRCON1_POWER_OFF 0x00
#define GREE_AIRCON1_POWER_ON 0x08