Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: enrique on June 09, 2022, 03:04:47 PM

Title: ESP32 Gateway + SPI display
Post by: enrique on June 09, 2022, 03:04:47 PM
Hi!
I am trying to use a SPI display with the ESP32 Gateway board (version G).

However, the usual SPI pins are not exposed (18,19,23,5). What is your suggestion? is there any workaround?

thanks!
Title: Re: ESP32 Gateway + SPI display
Post by: LubOlimex on June 09, 2022, 04:17:46 PM
This is SPI3/VSPI. Maybe also check SPI2/HSPO (15,14,12,13).

You can define any GPIO pin for SPI. The downside is that the speed drops to 40Mhz but that rarely is an issue. Notice that some of the exposed pins can't be outputs, just inputs (these are named GPI in our designs)
Title: Re: ESP32 Gateway + SPI display
Post by: enrique on June 11, 2022, 12:08:35 PM
Thanks,
I successfully connected a ILI9341 TFT display using the following pins:

#define TFT_MISO 2
#define TFT_MOSI 14
#define TFT_SCLK 15
#define TFT_CS   12  // Chip select control pin
#define TFT_DC   13  // Data Command control pin
#define TFT_RST  33

thanks again,
Enrique