-
Notifications
You must be signed in to change notification settings - Fork 888
Add support for Rhoss Idrowall MPCV 20-30-35-40 A/C protocol #1630
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
Merged
crankyoldgit
merged 11 commits into
crankyoldgit:master
from
tomrosenback:add-rhoss-idrowall-ac-support
Oct 8, 2021
Merged
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7d12d55
Change googletest library ignore
c1e785f
Merge branch 'crankyoldgit:master' into master
tomrosenback 7fb4470
Merge branch 'crankyoldgit:master' into master
tomrosenback 355eedf
Merge branch 'crankyoldgit:master' into master
tomrosenback adc0f38
Change wildcard target to be more distinct that run_tests as is also …
e81b9fb
Add support for Rhoss Idrowall MPCV 20-30-35-40 A/C protocol
6babbd1
Fix linter and doxygen issues
937a409
Doxygen fix
e855095
Linter fix
2795347
Fixes according to review comments
c576650
Ensuring we have the correct data, style fixes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /* Copyright 2021 Tom Rosenback | ||
| */ | ||
|
|
||
|
|
||
| #include <Arduino.h> | ||
| #include <IRremoteESP8266.h> | ||
| #include <IRsend.h> | ||
| #include <IRrecv.h> | ||
| #include <IRutils.h> | ||
| #include <ir_Rhoss.h> | ||
|
|
||
| const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2). | ||
| const uint16_t kIrRecvLed = 14; // ESP8266 GPIO pin to use. Recommended: 14 (D5). | ||
| const uint16_t kIrMaxBuffer = 1024; | ||
| const uint16_t kIrTimeout = 50; | ||
| IRRhossAc ac(kIrLed); // Set the GPIO to be used to sending the message. | ||
| IRrecv irrecv(kIrRecvLed, kIrMaxBuffer, kIrTimeout, true); | ||
| decode_results decode_results; // Somewhere to store the results | ||
|
|
||
| void setup() { | ||
| irrecv.enableIRIn(); | ||
| Serial.begin(115200); | ||
|
|
||
| #if SEND_RHOSS | ||
| ac.begin(); | ||
| #endif // SEND_RHOSS | ||
| } | ||
|
|
||
| void loop() { | ||
| #if DECODE_RHOSS | ||
| if(irrecv.decode(&decode_results)) { | ||
| Serial.println("Decoded a message"); | ||
|
|
||
| if(decode_results.decode_type == RHOSS) { | ||
| Serial.println("Rhoss message decoded"); | ||
| Serial.println(resultToSourceCode(&decode_results)); | ||
| Serial.println(resultToHumanReadableBasic(&decode_results)); | ||
| ac.setRaw(decode_results.state); | ||
| Serial.println(ac.toString()); | ||
|
|
||
| // relay received signal | ||
| #if SEND_RHOSS | ||
| // disable receiving while sending | ||
| irrecv.disableIRIn(); | ||
| Serial.println("Sending..."); | ||
| // Now send the IR signal. | ||
| ac.send(); | ||
| irrecv.enableIRIn(); | ||
| #else // SEND_RHOSS | ||
| Serial.println("Can't send because SEND_RHOSS has been disabled."); | ||
| #endif // SEND_RHOSS | ||
| } | ||
| } | ||
| #endif | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| [platformio] | ||
tomrosenback marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| src_dir = . | ||
|
|
||
| [env] | ||
| lib_extra_dirs = ../../ | ||
| lib_ldf_mode = deep+ | ||
| lib_ignore = examples | ||
| framework = arduino | ||
| monitor_speed = 115200 | ||
| build_flags = ; -D_IR_LOCALE_=en-AU | ||
|
|
||
| [env:nodemcuv2] | ||
| platform = espressif8266 | ||
| board = nodemcuv2 | ||
|
|
||
| [env:esp32dev] | ||
| platform = espressif32 | ||
| board = esp32dev | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.