This example demonstrate the use of the CSE_Touch library to read the values from a touch panel. This example uses the polling method instead of the interrupt method. Polling method is useful when you want to read the values from the touch panel constantly, whenever you choose. This also avoids the need for an extra GPIO pin to be used for the interrupt input.
This example was written for and tested with FireBeetle-ESP32E development board from DFRobot and the 2.8" Capacitive Touch LCD from Waveshare. But you can adapt the examples for any Arduino-compatible boards or other supported touch panels.