How to use ESP32 SPI in 4 bit using esp-idf?

lalitahuja33
Posts: 16
Joined: Wed Jul 22, 2020 1:03 pm

How to use ESP32 SPI in 4 bit using esp-idf?

Postby lalitahuja33 » Thu Jul 23, 2020 7:41 am

  1. I'm want to use ESP32 SPI in 4 bit mode to drive P10 displays. In my previous code I was driving one P10 tile/display using 1 bit SPI. Now, I want to drive 2 P10 tile/display using the same SPI in 4 bit mode and then 4 P10 tile/display using the same SPI in 4 bit mode.
  2. I have enabled (SPI_TRANS_MODE_QIO) flag in spi_transaction_t structure, and SPICOMMON_BUSFLAG_QUAD flag in spi_bus_config_t flag. Now how to change the data arrangement?
  3.  
  4. Can anyone tell what changes I need to make in SPI functions for this?

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Kniroxe and 68 guests