To start off I am trying to use an Arduino nano esp32 and a ST7796S 4" display to give real time data for an electric go-kart that I am building. I am doing so as there are very limited display options for VESC controllers out there and those that exist are no bigger than 2".
I have the nano ESP32 and the display. The first difficulty of this project is that most if not all the resources that I can find are for the OG ESP32 board so the pinouts are different. But alas there is a handy diagram that Arduino has so NBD. Currently have it wired as...
DISPLAY -------- ESP32
MISO -------------D12
MOSI ------------ D11
SCLK ------------ D13
CS --------------- D10
DC --------------- A1
RST --------------- RST
VCC ---------------3.3V
GND-------------GND
I am using the TFT_eSPI library and using lib 27 for the 7796 display. rPI is commented and Hz is to 40.
as follows is how I have it defined in the display 27 library
#define TFT_MISO 12
#define TFT_MOSI 11
#define TFT_SCLK 13
#define TFT_CS 18 // Chip select control pin
#define TFT_DC 10 // Data Command control pin
//#define TFT_RST 20 // Reset pin (could connect to RST pin)
#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
#define TFT_MISO 12
#define TFT_MOSI 11
#define TFT_SCLK 13
#define TFT_CS 18 // Chip select control pin
#define TFT_DC 10 // Data Command control pin
//#define TFT_RST 20 // Reset pin (could connect to RST pin)
#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
"pin number" is set to default with Arduino pins in tools.
I currently just get a white display. No flicker when I upload various test "examples."