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

Ensure the IR LED is off before we start. #405

Merged
merged 1 commit into from
Jan 28, 2018

Conversation

crankyoldgit
Copy link
Owner

pinMode(XX, OUTPUT); defaults (arduino) to pulling the gpio LOW by default.
If we have been set up to transmit in inverted mode, we want the gpio pulled HIGH initially. i.e. the physical IR LED will be off.
ledOff() understands this, and will do the right thing.

`pinMode(XX, OUTPUT);` defaults (arduino) to pulling the gpio LOW by default.
If we have been set up to transmit in `inverted` mode, we want the gpio pulled HIGH initially. i.e. the physical IR LED will be off.
`ledOff()` understands this, and will do the right thing.
@crankyoldgit
Copy link
Owner Author

Ref #7 (comment)

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.

Looks good

@crankyoldgit
Copy link
Owner Author

@darshkpatel Thanks for the super prompt review!

@crankyoldgit crankyoldgit merged commit c2357c4 into master Jan 28, 2018
@crankyoldgit crankyoldgit deleted the improve_inverted_mode branch January 28, 2018 02:49
crankyoldgit added a commit that referenced this pull request Mar 2, 2018
**[Bug Fixes]**
- Ensure the IR LED is off before we start. (#405)

**[Features]**
- Experimental decode support for Gree HVAC units (#397)
- Initial support for Haier A/Cs. (#409)
- Improve timing accuracy of unit tests. (#403)
- Rework matchData() to handle equal total data bit time protocols. (#408)

**[Misc]**
- Add startup text to IRrecvDumpV2 and IRrecvDemo (#412)
- Tweak timings on Fujitsu A/C header (#418)
- AutoAnalyseRawData.sh: Add some support for handling larger than 64 bit codes. (#419)
- Use better comments for send GPIO in examples. (#425)
@crankyoldgit crankyoldgit mentioned this pull request Mar 2, 2018
crankyoldgit added a commit that referenced this pull request Mar 2, 2018
**[Bug Fixes]**
- Ensure the IR LED is off before we start. (#405)

**[Features]**
- Experimental decode support for Gree HVAC units (#397)
- Initial support for Haier A/Cs. (#409)
- Improve timing accuracy of unit tests. (#403)
- Rework matchData() to handle equal total data bit time protocols. (#408)

**[Misc]**
- Add startup text to IRrecvDumpV2 and IRrecvDemo (#412)
- Tweak timings on Fujitsu A/C header (#418)
- AutoAnalyseRawData.sh: Add some support for handling larger than 64 bit codes. (#419)
- Use better comments for send GPIO in examples. (#425)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants