I am using the
JZK® ESP-32S ESP32 Development Board
which looks like the DOIT ESP32 DEVKIT V1, 30-GPIO pin version.
Trying out the touch example sketch, it seems that T8 is on D32 and T9 is on D33.
Also, D2 is not touch-sensitive. It was supposed to be T2. It has the built-in Blue LED.
T0 does indeed work in D4.
I am wondering if there are other differences in the pinouts from the authentic DOIT board.
You are right. Other members have also reported those problems before.
I’ll have to add a note about that in the Touch Sensor Unit.
- 32 is swapped with 33
- The touchRead() function is always reading 0 on the Touch 2 (GPIO2) pin. So, it seems it is not working properly.
Here are the threads that reported those problems:
Thanks, Sara. The best place to put a note about these trouble pins would be on the pinout diagram (including the printable PDF) since that is what we refer to when deciding which pins to use for what.