Experimentalist
Well-known member
Paul, thanks for your time and dedication to the cause as ever, Adafruit's libraries both work fine with the Adafruit_ILI9341 library showing better speeds. The results of each, corrupted output aside, are shown below.
I have wired the reset pin and changed the ILI9341_t3 constructor to:
Is that the correct syntax for specifying the reset and do I need to do anything else as I am still getting the corruption?
Results:
Begin Adafruit_ILI9340 Test!
Benchmark Time (microseconds)
Screen fill 1945672
Text 148299
Lines 1488543
Horiz/Vert Lines 161468
Rectangles (outline) 104783
Rectangles (filled) 4040175
Circles (filled) 686411
Circles (outline) 649668
Triangles (outline) 472213
Triangles (filled) 1379234
Rounded rects (outline) 267230
Rounded rects (filled) 4434364
Done!
ILI9341 Test!
Display Power Mode: 0x9C
MADCTL Mode: 0x48
Pixel Format: 0x5
Image Format: 0x9C
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill 1194090
Text 83368
Lines 809350
Horiz/Vert Lines 98596
Rectangles (outline) 63663
Rectangles (filled) 2479508
Circles (filled) 400018
Circles (outline) 352556
Triangles (outline) 256761
Triangles (filled) 834986
Rounded rects (outline) 150474
Rounded rects (filled) 2714640
Done!
ILI9341_t3 Test!
Display Power Mode: 0xCE
MADCTL Mode: 0x24
Pixel Format: 0x2
Image Format: 0xCE
Self Diagnostic: 0xE0
Benchmark Time (microseconds)
Screen fill 280114
Text 19429
Lines 73327
Horiz/Vert Lines 23146
Rectangles (outline) 14671
Rectangles (filled) 581718
Circles (filled) 95539
Circles (outline) 95510
Triangles (outline) 17807
Triangles (filled) 197552
Rounded rects (outline) 39902
Rounded rects (filled) 637639
Done!
I have wired the reset pin and changed the ILI9341_t3 constructor to:
Code:
// For the Adafruit shield, these are the default.
#define TFT_RST 8
#define TFT_DC 9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC, TFT_RST);
Is that the correct syntax for specifying the reset and do I need to do anything else as I am still getting the corruption?
Results:
Begin Adafruit_ILI9340 Test!
Benchmark Time (microseconds)
Screen fill 1945672
Text 148299
Lines 1488543
Horiz/Vert Lines 161468
Rectangles (outline) 104783
Rectangles (filled) 4040175
Circles (filled) 686411
Circles (outline) 649668
Triangles (outline) 472213
Triangles (filled) 1379234
Rounded rects (outline) 267230
Rounded rects (filled) 4434364
Done!
ILI9341 Test!
Display Power Mode: 0x9C
MADCTL Mode: 0x48
Pixel Format: 0x5
Image Format: 0x9C
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill 1194090
Text 83368
Lines 809350
Horiz/Vert Lines 98596
Rectangles (outline) 63663
Rectangles (filled) 2479508
Circles (filled) 400018
Circles (outline) 352556
Triangles (outline) 256761
Triangles (filled) 834986
Rounded rects (outline) 150474
Rounded rects (filled) 2714640
Done!
ILI9341_t3 Test!
Display Power Mode: 0xCE
MADCTL Mode: 0x24
Pixel Format: 0x2
Image Format: 0xCE
Self Diagnostic: 0xE0
Benchmark Time (microseconds)
Screen fill 280114
Text 19429
Lines 73327
Horiz/Vert Lines 23146
Rectangles (outline) 14671
Rectangles (filled) 581718
Circles (filled) 95539
Circles (outline) 95510
Triangles (outline) 17807
Triangles (filled) 197552
Rounded rects (outline) 39902
Rounded rects (filled) 637639
Done!