Hey Everyone,
I could really use some help on this. I am having issues with my screen being white only. The Adafruit board TFT screen is connected to a Adafruit Metro Mini. I purchased this board and followed all the directions per the website. I have installed all libraries per instructions for this board for SPI configuration. When I power it on the screen is just white. When I run the code the screen is still just white and nothing happens. I upload the code and when I go to the serial monitor this is what it shows:
ILI9341 Test!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill 18038984
Text 922616
Lines 8588076
Horiz/Vert Lines 1475848
Rectangles (outline) 940356
Rectangles (filled) 37438608
Circles (filled) 4293148
Circles (outline) 3737148
Triangles (outline) 1954704
Triangles (filled) 12445156
Rounded rects (outline) 1781500
Rounded rects (filled) 37243860
Done!
Any help would be greatly appreciated. Here is the link to the product info Adafruit 2.4 TFT LCD with Touchscreen Breakout w/MicroSD Socket [ILI9341] : ID 2478 : $29.95 : Adafruit Industries, Unique & fun DIY electronics and kits
TIA,
Kevin
The code is to many characters to post here so I have placed it in a txt file for your review.
Finally here is my pin layout:
/*Pin Layout
Pin#13 SCK
Pin#12 MISO
Pin#11 MOSI
Pin#10 CS (MAX31865)
Pin#9 TFT CCS
Pin#8 TFT D/C
Pin#7 TFT CS
Pin#6 TFT X+
Pin#5 TFT Y-
Pin#4 BTE CS
Pin#3 BTE IRQ
Pin#2 CD
Pin#1 -- TXD
Pin#0 -- RXD
Pin#A0 A THERM SENSOR 1
Pin#A1 A THERM SENSOR 2
Pin#A2 A THERM SENSOR 3
Pin#A3 A THERM SENSOR 4
Pin#A4 TFT X-
Pin#A5 TFT Y+
*/
Example Code.txt (9.23 KB)
You can configure for SPI or for 8080-8 parallel.
Please post a photo of your wiring.
Adafruit's usual trick is to omit the RST pin in their examples. (this ensures failure on Red ILI9341 boards)
I presume that Adafruit have a pullup on RST. But it is always safer to use RST pin.
I do not have your display. I am sure that it should work just fine.
David.
Here is a pic of the screen pins. The 3vo, Lite, RST, and IMx pins are not used. It currently has 3V in to the Vin. I started with 3V in, switched to 5V in and am back to the 3V in and no change with doing that either. All IMx jumpers have been soldered except for the IM0. There is nothing attached to the parallel side of the PCB.
I would connect VIN to 5V, RST to GPIO. And use the full-fat constructor in the examples e.g.
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
Make sure that you have up to date Adafruit_ILI9341 and Adafruit_GFX libraries via the Library Manager.
David.
Hey David,
What pin is the GPIO on the Adafruit Metro Mini?
GPIO just means General Purpose Input Output i.e. a posh name for digital pin.
You can use any spare pin you like (except A6, A7, D0, D1)
Your photo does not show how you connect to the pins on your Metro Mini.
They must match your defines e.g. TFT_MOSI must be 11, TFT_SCK must be 13, ...
David.