Issue:
Currently the touch interrupt pin comes directly from the board's header like this:
|
#define BSP_LCD_TOUCH_INT (GPIO_NUM_NC) |
Here the pin is marked as 'not connected'. To modify this you'll need to modify BSP header-files which is not wanted in our case.
Suggestion:
Add support to set custom touch pin via bsp_touch_config_t:
For example:
typedef struct {
gpio_num_t int_gpio_num; /*!< GPIO number of interrupt pin */
} bsp_touch_config_t;
This also requires some flag or using the given pin num to detect whether default value or custom value should be used.