Skip to content

ESP32: Return correct deep sleep wakeup pin #10513

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 1 commit into from
Jul 29, 2025

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Jul 25, 2025

On ESP32, alarm.wake_alarm.pin was wrong, because it was return the RTC_GPIO pin number, not the regular GPIO. On ESP32 only (at present), the RTC_GPIO numbers do not line up with the regular GPIO numbers. There is no direct mapping function or table to go from RTC_GPIO to GPIO, so I just wrote a search loop to find the right pin, using the supplied mapping function the other way.

Tested on Feather ESP32 V2, and tested that there was no regression on a Feather TFT ESP32-S2.

Thanks @keen101 for the bug report.

@dhalbert dhalbert requested a review from tannewt July 26, 2025 01:52
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit 3f95c01 into adafruit:main Jul 29, 2025
246 checks passed
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.

Bug Report: alarm.pin.PinAlarm Mis-maps to Incorrect Pins on ESP32 Feather
2 participants