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

Method createPanelConfig

Drivers/ILI934x/Source/Ili934xDisplay.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28esp_lcd_panel_dev_config_t Ili934xDisplay::createPanelConfig(std::shared_ptr<EspLcdConfiguration> espLcdConfiguration, gpio_num_t resetPin) {
29 return {
30 .reset_gpio_num = resetPin,
31 .rgb_ele_order = espLcdConfiguration->rgbElementOrder,
32 .data_endian = LCD_RGB_DATA_ENDIAN_LITTLE,
33 .bits_per_pixel = espLcdConfiguration->bitsPerPixel,
34 .flags = {
35 .reset_active_high = 0
36 },
37 .vendor_config = nullptr
38 };
39}
40
41bool Ili934xDisplay::createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_panel_dev_config_t& panelConfig, esp_lcd_panel_handle_t& panelHandle) {
42 return esp_lcd_new_panel_ili9341(ioHandle, &panelConfig, &panelHandle) == ESP_OK;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected