Skip to content

When using TOUCH 8 and TOUCH 9, the corresponding GPIO should be exchanged #3584

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

Closed
zztiger123 opened this issue Dec 19, 2019 · 2 comments
Closed
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@zztiger123
Copy link

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)

//Change the code below by your sketch
//Change the code below by your sketch
void setup() {
 
  // 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);

}

void loop() {
  // put your main code here, to run repeatedly:
  int val_14 = touchRead(T6);  //14
  int val_27 = touchRead(T7);  //27
  int val_33 = touchRead(T8);  //33
  int 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

TreeNewbeer added a commit to TreeNewbeer/arduino-esp32 that referenced this issue Jan 8, 2020
@stale
Copy link

stale bot commented Feb 17, 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.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Feb 17, 2020
@stale
Copy link

stale bot commented Mar 2, 2020

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

1 participant