You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A button (but issue can be replicated with just a pullup)
Hardware Configuration
Pullup connected to pin 3.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
N/A
PSRAM enabled
yes
Upload speed
926000
Description
I reported this before, but it was closed, despite being a bug. I am unable to reopen the issue, so I made a new one.
Original issue: #10927
I expect to be able to read correct values using digitalRead, even after calling analogRead.
The example sketch should print:
4095
1
4095
1
4095
1
...
But prints
4095
0
4095
0
4095
0
After even a single call to analogRead, all subsequent calls to digitalRead return 0, even if the pin is pulled up. Tested with multiple pins.
Sketch
voidsetup() {
// put your setup code here, to run once:pinMode(3, INPUT);
Serial.begin(115200);
}
voidloop() {
// put your main code here, to run repeatedly:
Serial.println(analogRead(3));
delay(100);
Serial.println(digitalRead(3));
delay(100);
}
Board
Custom ESP32S3 board
Device Description
A button (but issue can be replicated with just a pullup)
Hardware Configuration
Pullup connected to pin 3.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
N/A
PSRAM enabled
yes
Upload speed
926000
Description
I reported this before, but it was closed, despite being a bug. I am unable to reopen the issue, so I made a new one.
Original issue: #10927
I expect to be able to read correct values using digitalRead, even after calling analogRead.
The example sketch should print:
4095
1
4095
1
4095
1
...
But prints
4095
0
4095
0
4095
0
After even a single call to analogRead, all subsequent calls to digitalRead return 0, even if the pin is pulled up. Tested with multiple pins.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: