| 26 | } |
| 27 | |
| 28 | esp_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 | |
| 41 | bool 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; |
nothing calls this directly
no outgoing calls
no test coverage detected