Skip to content

Commit

Permalink
Merge branch 'feat/adapt_spi_lcd_to_lvgl_v5.3' into 'release/v5.3'
Browse files Browse the repository at this point in the history
docs: update programming guide to also support quad spi lcd (v5.3)

See merge request espressif/esp-idf!34036
  • Loading branch information
suda-morris committed Oct 10, 2024
2 parents ded2989 + a7c2b5c commit d63eb12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/en/api-reference/peripherals/lcd/spi_lcd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ SPI Interfaced LCD

#. Create an SPI bus. Please refer to :doc:`SPI Master API doc </api-reference/peripherals/spi_master>` 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
Expand Down

0 comments on commit d63eb12

Please sign in to comment.