[IR] Update IRRemoteESP8266 to 2.7.9 (#743)
Add HITACHI_AC344 CORONA_AC MIDEA24 ZEPEAL SANYO_AC
This commit is contained in:
1 parent
605da549b9
commit
e27acee4b6
3 files changed
+57
-1
No files matched your search
@@ -1131,6 +1131,57 @@ bool sendIdentifiedProtocol(const char* protocol_name, SIGNAL_SIZE_UL_ULL data,
|
||||
irsend.sendCarrierAC64(data, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
# ifdef IR_HITACHI_AC344
|
||||
if (strcmp(protocol_name, "HITACHI_AC344") == 0) {
|
||||
Log.notice(F("Sending IR signal with %s" CR), protocol_name);
|
||||
if (valueRPT == repeatIRwNumber)
|
||||
valueRPT = std::max(valueRPT, kHitachiAcDefaultRepeat);
|
||||
if (valueBITS == 0)
|
||||
valueBITS = kHitachiAc344StateLength;
|
||||
irsend.sendHitachiAc344(dataarray, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
# ifdef IR_CORONA_AC
|
||||
if (strcmp(protocol_name, "CORONA_AC") == 0) {
|
||||
Log.notice(F("Sending IR signal with %s" CR), protocol_name);
|
||||
if (valueBITS == 0)
|
||||
valueBITS = kCoronaAcStateLength;
|
||||
irsend.sendCoronaAc(dataarray, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
# ifdef IR_MIDEA24
|
||||
if (strcmp(protocol_name, "MIDEA24") == 0) {
|
||||
Log.notice(F("Sending IR signal with %s" CR), protocol_name);
|
||||
if (valueRPT == repeatIRwNumber)
|
||||
valueRPT = std::max(valueRPT, kMidea24MinRepeat);
|
||||
if (valueBITS == 0)
|
||||
valueBITS = kMidea24Bits;
|
||||
irsend.sendMidea24(data, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
# ifdef IR_ZEPEAL
|
||||
if (strcmp(protocol_name, "ZEPEAL") == 0) {
|
||||
Log.notice(F("Sending IR signal with %s" CR), protocol_name);
|
||||
if (valueRPT == repeatIRwNumber)
|
||||
valueRPT = std::max(valueRPT, kZepealMinRepeat);
|
||||
if (valueBITS == 0)
|
||||
valueBITS = kZepealBits;
|
||||
irsend.sendZepeal(data, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
# ifdef IR_SANYO_AC
|
||||
if (strcmp(protocol_name, "SANYO_AC") == 0) {
|
||||
Log.notice(F("Sending IR signal with %s" CR), protocol_name);
|
||||
if (valueBITS == 0)
|
||||
valueBITS = kSanyoAcStateLength;
|
||||
irsend.sendSanyoAc(dataarray, valueBITS, valueRPT);
|
||||
return true;
|
||||
}
|
||||
# endif
|
||||
Log.warning(F("Unknown IR protocol" CR));
|
||||
return false;
|
||||
|
||||
@@ -132,6 +132,11 @@ extern void MQTTtoIR(char* topicOri, JsonObject& RFdata);
|
||||
# define IR_MULTIBRACKETS
|
||||
# define IR_CARRIER_AC40
|
||||
# define IR_CARRIER_AC64
|
||||
# define IR_HITACHI_AC344
|
||||
# define IR_CORONA_AC
|
||||
# define IR_MIDEA24
|
||||
# define IR_ZEPEAL
|
||||
# define IR_SANYO_AC
|
||||
#elif __AVR_ATmega2560__
|
||||
# define IR_COOLIX
|
||||
# define IR_Whynter
|
||||
|
||||
Reference in new issue
Block a user