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
Board: ESP32 Dev Module(Devkitc_v4)
Core Installation version: I copy the github website to the arduino yesterday
IDE name: Arduino IDE
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Ubuntu
Description:
Problem: When using TOUCH 8 and TOUCH 9, the corresponding GPIO should be exchanged.
Details: In the arduino esp32 library, TOUCHPAD T8 corresponds to GPIO33, TOUCHPAD T9 corresponds to GPIO32, but in my actual test, TOUCHPAD T8 corresponds to GPIO32, and TOUCHPAD T9 corresponds to GPIO33. Is this a problem in the arduino library?
//Change the code below by your sketch//Change the code below by your sketchvoidsetup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.printf("idf_version: %s\n", esp_get_idf_version());//idf_version: v3.2.3-14-gd3e562907// pinMode(32, INPUT);// pinMode(33, INPUT);// pinMode(27, INPUT);
}
voidloop() {
// put your main code here, to run repeatedly:int val_14 = touchRead(T6); //14int val_27 = touchRead(T7); //27int val_33 = touchRead(T8); //33int val_32 = touchRead(T9); //32
Serial.printf("%d ,%d ,%d ,%d\n", val_14, val_27, val_33, val_32);
}
Debug Messages:
I tested four case:touch GPIO 14(T6), touch GPIO 27(T7), touch GPIO 33(T8), touch GPIO 32(T9),
The log in case 1(GPIO 14(T6)):right 0 ,110 ,122 ,126
The log in case 2(GPIO 27(T7)):right 106 ,0 ,122 ,125
The log in case 3(GPIO 33(T8)):maybe wrong,I think the third value should be zero. 107 ,110 ,120 ,0
The log in case 4(GPIO 32(T9)):maybe wrong,I think the fourth value should be zero. 107 ,110 ,0 ,126
The text was updated successfully, but these errors were encountered:
TreeNewbeer
added a commit
to TreeNewbeer/arduino-esp32
that referenced
this issue
Jan 8, 2020
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Hardware:
Board: ESP32 Dev Module(Devkitc_v4)
Core Installation version: I copy the github website to the arduino yesterday
IDE name: Arduino IDE
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Ubuntu
Description:
Problem: When using TOUCH 8 and TOUCH 9, the corresponding GPIO should be exchanged.
Details: In the arduino esp32 library, TOUCHPAD T8 corresponds to GPIO33, TOUCHPAD T9 corresponds to GPIO32, but in my actual test, TOUCHPAD T8 corresponds to GPIO32, and TOUCHPAD T9 corresponds to GPIO33. Is this a problem in the arduino library?
Sketch: (leave the backquotes for code formatting)
Debug Messages:
I tested four case:touch GPIO 14(T6), touch GPIO 27(T7), touch GPIO 33(T8), touch GPIO 32(T9),
The log in case 1(GPIO 14(T6)):right
0 ,110 ,122 ,126
The log in case 2(GPIO 27(T7)):right
106 ,0 ,122 ,125
The log in case 3(GPIO 33(T8)):maybe wrong,I think the third value should be zero.
107 ,110 ,120 ,0
The log in case 4(GPIO 32(T9)):maybe wrong,I think the fourth value should be zero.
107 ,110 ,0 ,126
The text was updated successfully, but these errors were encountered: