change(esp_lcd): split header files by different IO interface

This commit is contained in:
morris
2024-05-29 22:16:50 +08:00
parent fdbe535434
commit c4b2bd89da
13 changed files with 315 additions and 223 deletions

View File

@@ -50,3 +50,8 @@ I2C Interfaced LCD
.reset_gpio_num = EXAMPLE_PIN_NUM_RST,
};
ESP_ERROR_CHECK(esp_lcd_new_panel_ssd1306(io_handle, &panel_config, &panel_handle));
API Reference
-------------
.. include-build-file:: inc/esp_lcd_io_i2c.inc

View File

@@ -74,3 +74,8 @@ I80 Interfaced LCD
.bits_per_pixel = 16,
};
ESP_ERROR_CHECK(esp_lcd_new_panel_st7789(io_handle, &panel_config, &panel_handle));
API Reference
-------------
.. include-build-file:: inc/esp_lcd_io_i80.inc

View File

@@ -58,3 +58,8 @@ SPI Interfaced LCD
};
// Create LCD panel handle for ST7789, with the SPI IO device handle
ESP_ERROR_CHECK(esp_lcd_new_panel_st7789(io_handle, &panel_config, &panel_handle));
API Reference
-------------
.. include-build-file:: inc/esp_lcd_io_spi.inc