Skip to content
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

[BUG] Ensure IRrecv's GPIO is set to input mode. #774

Merged
merged 1 commit into from
Jun 25, 2019
Merged

Conversation

crankyoldgit
Copy link
Owner

  • Testing on different ESP32 boards highlighted that unlike ESP8266's
    the GPIO needs to be explicitly set to INPUT (or INPUT_PULLUP) mode for
    interrupts to work correctly.

  • Adjust list of available GPIO/GPI's on ESP32 in IRMQTTServer.

  • Add option to use INPUT_PULLUP via IRrecv.enableIRIn(true).

    • Default is false. i.e. INPUT

Fixes #768

@crankyoldgit
Copy link
Owner Author

PR has been confirmed to fix the issue. See #768 (comment)

* Testing on different ESP32 boards highlighted that unlike ESP8266's
  the GPIO needs to be explicitly set to INPUT (or INPUT_PULLUP) mode for
  interrupts to work correctly.

* Adjust list of available GPIO/GPI's on ESP32 in IRMQTTServer.
* Add option to use `INPUT_PULLUP` via `IRrecv.enableIRIn(true)`.
  - Default is false. i.e. `INPUT`

Tested on GOOUUU-ESP32 & a Olimex ESP32-EVB board. Confirmed working.

Fixes #768
Copy link
Collaborator

@darshkpatel darshkpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crankyoldgit
Copy link
Owner Author

@darshkpatel thanks for reviewing.

@crankyoldgit crankyoldgit merged commit c33d975 into master Jun 25, 2019
@crankyoldgit crankyoldgit deleted the Issue768 branch June 27, 2019 02:47
crankyoldgit added a commit that referenced this pull request Jul 4, 2019
_v2.6.3 (20190704)_

**[Bug Fixes]**
- IRMQTTServer: REPLAY_DECODED_AC_MESSAGE not working. (#784, #797)
- ESP32: Ensure `IRrecv`'s GPIO is set to input mode. (#774)

**[Features]**
- IRMQTTServer: Show available sketch space for OTA uploads. (#795)
- Experimental detailed support for Electra/AUX protocol (#788)
- IRMQTTServer: Ability to resend existing climate state via MQTT & HTTP (#784)
- Daikin160: Add detailed & common a/c support. (#777)
- Experimental detailed support for Neoclima protocol. (#767)
- Gree: add WiFi and IFeel bits (#770)
- Handle A/Cs with toggles better. (#758)
- IRMQTTServer: Allow sending/receiving climate via JSON over MQTT. (#763)

**[Misc]**
- Move converting of IR A/C messages out of example code. (#798)
- Reduce example code size and complexity (#790)
- Change `ControlSamsungAC` example to not use `sendExtended()` (#792)
- IRMQTTServer: Add MQTT_CLIMATE_IR_SEND_ON_RESTART compile-time flag. (#784)
- Refactor A/C's toString()'s to reduce code size. Saves ~3.5k (#782)
- Add sanity tests for unexpected conditions in IRrecv. (#773)
- IRMQTTServer: Fixed the HA config documentation (missing '-') (#776)
- Improve `mkkeywords` tool. (#766)
- Refactor with generic decode routines in `IRrecv` class. Saves ~7k. (#765)
@crankyoldgit crankyoldgit mentioned this pull request Jul 4, 2019
crankyoldgit added a commit that referenced this pull request Jul 4, 2019
## _v2.6.3 (20190704)_

**[Bug Fixes]**
- IRMQTTServer: REPLAY_DECODED_AC_MESSAGE not working. (#784, #797)
- ESP32: Ensure `IRrecv`'s GPIO is set to input mode. (#774)

**[Features]**
- IRMQTTServer: Show available sketch space for OTA uploads. (#795)
- Experimental detailed support for Electra/AUX protocol (#788)
- IRMQTTServer: Ability to resend existing climate state via MQTT & HTTP (#784)
- Daikin160: Add detailed & common a/c support. (#777)
- Experimental detailed support for Neoclima protocol. (#767)
- Gree: add WiFi and IFeel bits (#770)
- Handle A/Cs with toggles better. (#758)
- IRMQTTServer: Allow sending/receiving climate via JSON over MQTT. (#763)

**[Misc]**
- Move converting of IR A/C messages out of example code. (#798)
- Reduce example code size and complexity (#790)
- Change `ControlSamsungAC` example to not use `sendExtended()` (#792)
- IRMQTTServer: Add MQTT_CLIMATE_IR_SEND_ON_RESTART compile-time flag. (#784)
- Refactor A/C's toString()'s to reduce code size. Saves ~3.5k (#782)
- Add sanity tests for unexpected conditions in IRrecv. (#773)
- IRMQTTServer: Fixed the HA config documentation (missing '-') (#776)
- Improve `mkkeywords` tool. (#766)
- Refactor with generic decode routines in `IRrecv` class. Saves ~7k. (#765)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IRrecvDumpV2 doesn't work on Olimex ESP32-EVB board
2 participants