Page 1 of 1

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

Posted: Thu Jul 23, 2020 7:41 am
by lalitahuja33
  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?