MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / createIoHandle

Method createIoHandle

Drivers/XPT2046/Source/Xpt2046Touch.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool 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
33bool 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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected