| 26 | } |
| 27 | |
| 28 | bool Xpt2046Touch::createIoHandle(esp_lcd_panel_io_handle_t& outHandle) { |
| 29 | const esp_lcd_panel_io_spi_config_t io_config = ESP_LCD_TOUCH_IO_SPI_XPT2046_CONFIG(configuration->spiPinCs); |
| 30 | return esp_lcd_new_panel_io_spi(configuration->spiDevice, &io_config, &outHandle) == ESP_OK; |
| 31 | } |
| 32 | |
| 33 | bool Xpt2046Touch::createTouchHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_touch_config_t& config, esp_lcd_touch_handle_t& panelHandle) { |
| 34 | return esp_lcd_touch_new_spi_xpt2046(ioHandle, &config, &panelHandle) == ESP_OK; |
nothing calls this directly
no outgoing calls
no test coverage detected