Skip to content

Fix setup of Espressif PinAlarms #7125

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
merged 2 commits into from
Oct 26, 2022
Merged

Conversation

dhalbert
Copy link
Collaborator


  • Code to wait for a pull to happen was wrong -- it only waited in one direction, and it waited essentially forever. Not a good idea anyway, since the pin might be tied firmly to one value or the other. Instead, add a brief delay after setting all pulls.
  • Make sure RTC is powered up during sleep.
  • Unrelated corrections. to Metro ESP32-S2 debug UART pins.

@dhalbert dhalbert requested review from jepler and kattni October 26, 2022 00:45
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

no testing performed but the basic change makes sense. waiting forever for a pin to reach a particular status doesn't seem right. 50ms should be generous for almost any RC constant of a pulled I/O pin.

@dhalbert
Copy link
Collaborator Author

I will merge this now in prep for a beta.4 fairly soon. @kattni you can test at your leisure.

@dhalbert dhalbert merged commit 5ebdf28 into adafruit:main Oct 26, 2022
@dhalbert dhalbert deleted the esp-pin-alarm-fix branch October 26, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PinAlarm not working properly with value=True
2 participants