-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial code to handle Hitachi A/C 13 & 53 byte codes. #461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, otherwise LGTM :)
@@ -112,6 +112,7 @@ std::string typeToString(const decode_type_t protocol, | |||
case GREE: result = "GREE"; break; | |||
case HAIER_AC: result = "HAIER_AC"; break; | |||
case HITACHI_AC: result = "HITACHI_AC"; break; | |||
case HITACHI_AC1: result = "HITACHI_AC1"; break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also have a case HITACHI_AC2: result = "HITACHI_AC2";
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally. Excellent catch. Thanks.
Fixed plus found a few other subtle trivial omissions. e.g. code that should be included via #defines etc.
PTAL
HITACHI_AC1 is basically the same as HITACHI_AC except only 13 bytes long and a Header Space that is the same length as the Header Mark. Ref: #453
This should add basic support for another variant of Hitachi A/C protocol per @darshkpatel capture in #417 * Refactor Hitachi A/C protocol support to share more common code. * Unit tests for Hitachi 53 byte protocol. * Minor code style cleanup. * Relevant example code changes.
- Fix some code inclusion dependencies.
**[Bug Fixes]** - Fix crash in IRMQTTServer when compiled under Arduino IDE. (#455) - Default bit length not set for RCMM in IRMQTTServer example. (#456) - Bad acknowledgements for some A/C protocols in IRMQTTServer example. (#460) **[Features]** - Allow disabling the use of delay() calls. (#450) - Initial support for G.I. Cable protocol. (#458) - Support of Hitachi A/C 13 & 53 byte messages. (#461) **[Misc]** - Auto Analyse Raw Data script converted to Python. (#454)
Hi crankyoldgit, #include <Arduino.h> const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2). void setup() { void loop() { // Set up what we want to send. See ir_Daikin.cpp for all the options. // Now send the IR signal. unsigned char* ir_code = ac.getRaw(); delay(5000); Am I missing any settings? |
@arpitshah87 FYI, Please create a new issue via https://github.com/crankyoldgit/IRremoteESP8266/issues/new Don't append to an existing (old) pull request unless there was a problem in it. :-) I'm going to need more information before I can help you. e.g. What's the output from Also, note that only |
@crankyoldgit , I am getting the following output. Thanks for your reply I will wait for the "ac" class of HITACHI_AC1. |
You could be waiting a while. Have a read of https://github.com/crankyoldgit/IRremoteESP8266/wiki/Adding-support-for-a-new-AC-protocol to see how you could speed that along. ;-) |
HITACHI_AC1 is basically the same as HITACHI_AC except only 13 bytes long
and a Header Space that is the same length as the Header Mark.
Ref: #453