From a7c2b5c9b6f6debf9b3c88accc4f6d3955a12736 Mon Sep 17 00:00:00 2001 From: Chen Jichang Date: Thu, 19 Sep 2024 14:15:15 +0800 Subject: [PATCH] docs(spi_lcd): update supported spi mode description Closes https://github.com/espressif/esp-idf/issues/14605 --- docs/en/api-reference/peripherals/lcd/spi_lcd.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/en/api-reference/peripherals/lcd/spi_lcd.rst b/docs/en/api-reference/peripherals/lcd/spi_lcd.rst index 5c44794c6193..7e52c508e375 100644 --- a/docs/en/api-reference/peripherals/lcd/spi_lcd.rst +++ b/docs/en/api-reference/peripherals/lcd/spi_lcd.rst @@ -3,14 +3,16 @@ SPI Interfaced LCD #. Create an SPI bus. Please refer to :doc:`SPI Master API doc ` for more details. + Currently the driver supports SPI, Quad SPI and Octal SPI (simulate Intel 8080 timing) modes. + .. code-block:: c spi_bus_config_t buscfg = { .sclk_io_num = EXAMPLE_PIN_NUM_SCLK, .mosi_io_num = EXAMPLE_PIN_NUM_MOSI, .miso_io_num = EXAMPLE_PIN_NUM_MISO, - .quadwp_io_num = -1, // Quad SPI LCD driver is not yet supported - .quadhd_io_num = -1, // Quad SPI LCD driver is not yet supported + .quadwp_io_num = -1, + .quadhd_io_num = -1, .max_transfer_sz = EXAMPLE_LCD_H_RES * 80 * sizeof(uint16_t), // transfer 80 lines of pixels (assume pixel is RGB565) at most in one SPI transaction }; ESP_ERROR_CHECK(spi_bus_initialize(LCD_HOST, &buscfg, SPI_DMA_CH_AUTO)); // Enable the DMA feature