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

Method createIoHandle

Drivers/FT5x06/Source/Ft5x06Touch.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <esp_lvgl_port.h>
6
7bool Ft5x06Touch::createIoHandle(esp_lcd_panel_io_handle_t& outHandle) {
8 esp_lcd_panel_io_i2c_config_t io_config = ESP_LCD_TOUCH_IO_I2C_FT5x06_CONFIG();
9 return esp_lcd_new_panel_io_i2c(configuration->port, &io_config, &outHandle) == ESP_OK;
10}
11
12bool Ft5x06Touch::createTouchHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_touch_config_t& configuration, esp_lcd_touch_handle_t& panelHandle) {
13 return esp_lcd_touch_new_i2c_ft5x06(ioHandle, &configuration, &panelHandle) == ESP_OK;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected