Open Andy2No opened 10 months ago
Looking at the code, the problem is that although it reads the width and height from the tft object correctly, it then ignores those values and uses 320x240 instead.
At the very least, this change should be made, to show that it has identified the size correctly:
// tft.print("320x240");
tft.print(width); tft.print("x"); tft.print(height);
It would take quite a lot of rewriting to make the testcard fill a different sized display, but at least fixing that part would make it look like it's working as it should.
The first example I tried for my new ILI9488 based 480x320 3.5" display shield was testcard_kbv.ino, which disappointingly only identified it as 320x240, and so only filled part of the display.
I then tried diagnose_TFT_support.ino, which identifies and uses it correctly, so this is a bug in testcard_kbv.ino.
testcard_kbv.ino identifies it as 320x240, ID=0x9488.