I first ran the Adafruit_ILI9341 example on ILI9341 display with your defines:
ILI9341 Test!
Display Power Mode: 0x94
MADCTL Mode: 0x48
Pixel Format: 0x5
Image Format: 0x80
Self Diagnostic: 0xC0
Benchmark Time (microseconds)
Screen fill 1791755
Text 103552
Lines 944274
Horiz/Vert Lines 149591
Rectangles (outline) 95107
Rectangles (filled) 3724780
Circles (filled) 445436
Circles (outline) 416209
Triangles (outline) 214600
Triangles (filled) 1221702
Rounded rects (outline) 190323
Rounded rects (filled) 3711429
Done!
This is with the Adafruit_ST7796S_kbv example:
ST7796S_kbv Test!
Display Power Mode: 0xCE
MADCTL Mode: 0x24
Pixel Format: 0x2A
Image Format: 0x0
Self Diagnostic: 0xE0
Benchmark Time (microseconds)
Text 601966
Lines 1884834
Rectangles (outline) 163407
Circles (outline) 825709
Triangles (outline) 381301
Triangles (filled) 2803056
Rounded rects (outline) 252761
Rounded rects (filled) 5817140
Done!
Note that the registers are not being read correctly.
This is from Bodmer's TFT_graphicstest_one_lib:
TFT_eSPI library test!
Benchmark Time (microseconds)
Screen fill 566656
Text 46541
Lines 572667
Horiz/Vert Lines 54846
Rectangles (outline) 31995
Rectangles (filled) 1370921
Circles (filled) 271810
Circles (outline) 206229
Triangles (outline) 116962
Triangles (filled) 563804
Rounded rects (outline) 88140
Rounded rects (filled) 1444575
Done!
This is my Read_User_Setup output:
TFT_eSPI ver = 2.3.66
Processor = STM32
Transactions = Yes
Interface = SPI
Display driver = 7796
Display width = 320
Display height = 480
MOSI = GPIO -57-57
MISO = GPIO -58-58
SCK = GPIO -59-59
>>>>> Note: STM32 pin references above D15 may not reflect board markings <<<<<
TFT_CS = D19
TFT_DC = D26
TFT_RST = D27
Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Font 7 loaded
Font 8 loaded
Smooth font enabled
Display SPI frequency = 27.00
Yes, I think that it would be a good idea to "decode" the pins and SPI interface into something human-readable.
David.