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

Method createIoHandle

Drivers/ILI9488/Source/Ili9488Display.cpp:11–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9static const auto LOGGER = tt::Logger("ILI9488");
10
11bool Ili9488Display::createIoHandle(esp_lcd_panel_io_handle_t& outHandle) {
12 const esp_lcd_panel_io_spi_config_t panel_io_config = {
13 .cs_gpio_num = configuration->csPin,
14 .dc_gpio_num = configuration->dcPin,
15 .spi_mode = 0,
16 .pclk_hz = configuration->pixelClockFrequency,
17 .trans_queue_depth = configuration->transactionQueueDepth,
18 .on_color_trans_done = nullptr,
19 .user_ctx = nullptr,
20 .lcd_cmd_bits = 8,
21 .lcd_param_bits = 8,
22 .cs_ena_pretrans = 0,
23 .cs_ena_posttrans = 0,
24 .flags = {
25 .dc_high_on_cmd = 0,
26 .dc_low_on_data = 0,
27 .dc_low_on_param = 0,
28 .octal_mode = 0,
29 .quad_mode = 0,
30 .sio_mode = 0,
31 .lsb_first = 0,
32 .cs_high_active = 0
33 }
34 };
35
36 return esp_lcd_new_panel_io_spi(configuration->spiHostDevice, &panel_io_config, &outHandle) == ESP_OK;
37}
38
39bool Ili9488Display::createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, esp_lcd_panel_handle_t& panelHandle) {
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected