-
Notifications
You must be signed in to change notification settings - Fork 27
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
[ESP32-2432S024C] uses CST820 instead of CST816 and the INT GPIO is different #51
Comments
Hi Rene. Regarding the INT GPIO, I have the same schematics and even the sample code uses GPIO21. Anyway, trying to get it to work with ESPHome -which can use interrupts and also polling- I found that disabling polling, only GPIO22 detects interrupts. It was a matter of trial an error. GPIO22 shows touch in the logs, while GPIO21 doesn't. It could be a mismatch in ESPHome's GPIO assignation though :) Regards. |
It is very well possible this this the case and they a really good find... How can I reproduce this? Is there a little demo app to check for the INT |
I digged deeper and found that even setting an interrupt pin in ESPHome, which as per the documentation should stop using the polling method (= Long story short: I thought I was using interrupts while the code was using polling. I filled an issue to see if ESPHome developers can fix it: esphome/issues#5708 |
Okay, thanks for looking into this issue... |
Hi. I recently bought an ESP32-2432S024C, and can confirm that there are some changes regarding board definition: https://github.com/rzeldent/platformio-espressif32-sunton/blob/main/esp32-2432S024C.json
"'-D TOUCH_CST816S_I2C'"
"'-D CST816S_TOUCH_CONFIG_INT_GPIO_NUM=21'"
I tested it with https://esphome.io/components/touchscreen/cst816.html and works as expected.
The text was updated successfully, but these errors were encountered: