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 dafc3b3cd5
commit 33ac88cd31
10 changed files with 300 additions and 223 deletions

View File

@@ -48,3 +48,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

@@ -72,3 +72,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

@@ -56,3 +56,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