-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Fix pin attachInterrupt(digitalPinToInterrupt(48)) on all S3 based SOCs #8600
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have found 3 boards that are ESP32S2, I will open a PR reverting those back.
@@ -14,7 +14,7 @@ | |||
#define NUM_ANALOG_INPUTS 12 | |||
|
|||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) | |||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1) | |||
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuGlider Bee Motion boards is based on ESP32-S2.
@@ -14,7 +14,7 @@ | |||
#define NUM_ANALOG_INPUTS 20 | |||
|
|||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) | |||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1) | |||
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuGlider This boards is based on ESP32S2
@@ -15,7 +15,7 @@ | |||
#define NUM_ANALOG_INPUTS 20 | |||
|
|||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) | |||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1) | |||
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuGlider This boards is based on ESP32S2
Description of Change
Fixes an issue with
attachInterrupt(digitalPinToInterrupt(48))
that prevented it from setting GPIO48 as Interruptable.Tests scenarios
Only using ESP32-S3, as described in #8560
Related links
Fix #8560