Need help with esp32 and 1.54" 3 wire 9 bit display

Hi David,

So here is my define -

Note - pin# 27 i.e. DC pin is a dummy pin. TFT_MISO is connected to SDA1

#if defined(ESP32)
#define TFT_MOSI 23
#define TFT_MISO 2
#define TFT_SCK  18
#define TFT_SS   5
#define TFT_DC   27     //DC=7 for HX8347
#define TFT_RESET 4   //Backlight on HX8347

I was checking and unchecking one of the following -

//char interface = SDA_BIDIR;    //ST7789 bidirectional SDA + DC
//char interface = NINEBITS | SDA_BIDIR;  //3-wire SPI bidirectional SDA
//char interface = NINEBITS | HAS_MISO;  //4-wire SDA + SDO
//char interface = HAS_MISO | IS_9341;  //ILI9341 SPI
//char interface = HAS_MISO | IS_9481;  //ILI9481 SPI
//char interface = HAS_MISO | IS_9486;  //ILI9486 SPI
char interface = HAS_MISO;  //regular SPI
//char interface = NINEBITS | SDA_BIDIR | IS_9481;  //ILI9481 3-wire SPI bidirectional pin

for the regular SPI, here is the output. Since I'm using OTA -

Update: ST7789_readreg_diag.ino.esp32.bin
Update Success: 726656
Rebooting...
⸮R⸮⸮fgR
.....
Connected to deAdpool
IP address: 192.168.1.27
mDNS responder started

1. select correct defines for your board wiring
2. select correct interface type
3. select appropriate report function

certain registers read first byte e.g. 0x00-0x0F, 0xDA-0xDC
other multi-argument registers read first byte as dummy

Read registers 8-bit SPI with MISO (+ DC)
read reg(4):  ID = 0xFFFFFF
controller
data sheet specific calls
controller reg(0x04) = 0xFFFFFF
controller reg(0x09) = 0xFFFFFFFF
controller reg(0x0A) = 0xFF
controller reg(0x0B) = 0xFF
controller reg(0x0C) = 0xFF
controller reg(0x0D) = 0xFF
controller reg(0x0E) = 0xFF
controller reg(0x0F) = 0xFF
controller reg(0xDA) = 0xFF
controller reg(0xDB) = 0xFF
controller reg(0xDC) = 0xFF

The wiring diagram is attached. The PCB is a custom PCB that I got manufactured from China.

sxk1185