Hi,
I am running this screen in SPI mode and am only getting a white screen when I try and load the graphicstest.ino and the breakouttouch.ino examples. The screen will register touches in consule monitor when running the touch example. The ribbon cable looks secure and I double checked my soldering on IM1, IM2 and IM3. Any idea on how to get the screen working? Thanks!
White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
@Kuffcakes,
Please post any modifications you have used to the graphicstest.ino .
Are you using a Teensy 3.6 to drive this? Can you show a shot of the controller as well?
Please post any modifications you have used to the graphicstest.ino .
Are you using a Teensy 3.6 to drive this? Can you show a shot of the controller as well?
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
I left the code as is (CS 9, D/C 10) for the graphicstest.ino.
I'm testing this right now on the Leonardo to make sure it works before soldering to the Teensy 3.6.
Right now I only get a white screen. I can remove the jumpers and plug them into my 3.2" screen and graphics test.ino will start up.
I've attached a picture of the Leonardo.
I'm testing this right now on the Leonardo to make sure it works before soldering to the Teensy 3.6.
Right now I only get a white screen. I can remove the jumpers and plug them into my 3.2" screen and graphics test.ino will start up.
I've attached a picture of the Leonardo.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
You are using the breakout so it might be worth uncommenting that line and commenting out the default shield constructor.
When you watch the serial console during graphicstest.ino does it output progress during this demo (@9600 baud)?
You can try adding a delay(1000) before the tft.begin() in the setup code. Sometimes screens need a moment to initialize.
Code: Select all
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
You can try adding a delay(1000) before the tft.begin() in the setup code. Sometimes screens need a moment to initialize.
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
The 3.2" screen worked without uncommenting the breakout line. Using the 2.8" screen, the serial console showed what I pasted below using the default shield constructor. I did uncomment the breakout line and then commented the default shield constructor and the serial console showed the second set of info pasted.
Here is the console for the default setup with the delay(1000); included:
I used this for the breakout and included the delay(1000);
Here is the console for the default setup with the delay(1000); included:
Code: Select all
1505756
Text 155284
Lines 1275172
Horiz/Vert Lines 126020
Rectangles (outline) 83208
Rectangles (filled) 3122392
Circles (filled) 468100
Circles (outline) 544060
Triangles (outline) 283096
Triangles (filled) 1347192
Rounded rects (outline) 244952
Rounded rects (filled) 3147912
Done!
Code: Select all
#define TFT_DC 9
#define TFT_CS 10
#define PIN_SPI_MOSI 16
#define PIN_SPI_MISO 14
#define PIN_SPI_CLK 15
Code: Select all
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark Time (microseconds)
Screen fill
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Thank you for the serial output and code snippet. I think the SPI connections are not right.
Make sure you are using all three pins off the ICSP for the CLK / MISO / MOSI. I only see two wires coming off the ICSP header from your photo.
Make sure you are using all three pins off the ICSP for the CLK / MISO / MOSI. I only see two wires coming off the ICSP header from your photo.
CLK connects to SPI clock. On Arduino Uno/Duemilanove/328-based, thats Digital 13. On Mega's, its Digital 52 and on Leonardo/Due its ICSP-3 (See SPI Connections for more details)
MISO connects to SPI MISO. On Arduino Uno/Duemilanove/328-based, thats Digital 12. On Mega's, its Digital 50 and on Leonardo/Due its ICSP-1 (See SPI Connections for more details)
MOSI connects to SPI MOSI. On Arduino Uno/Duemilanove/328-based, thats Digital 11. On Mega's, its Digital 51 and on Leonardo/Due its ICSP-4 (See SPI Connections for more details)
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Here's a better angle. The brown wire is hiding in the other picture.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Thank you that is a better angle to read the ICSP pins.
You have the wires connected correctly to the ICSP.
It looks like you might have swapped the MISO / MOSI when connecting to the 2.8" side. It should be MISO <--> MISO and MOSI <--> MOSI.
You have the wires connected correctly to the ICSP.
It looks like you might have swapped the MISO / MOSI when connecting to the 2.8" side. It should be MISO <--> MISO and MOSI <--> MOSI.
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Good catch. I must have swapped those at some point. I uploaded the code using the default method and the breakout method with the same results in the console and the screen is still white.
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Any other ideas on trying to trouble shoot this or is this screen possibly defective?
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
We can try another screen. I’m out of ideas.
Email [email protected] requesting a replacement. They will need this forum link and your order#.
Email [email protected] requesting a replacement. They will need this forum link and your order#.
- Kuffcakes
- Posts: 49
- Joined: Sun Oct 08, 2017 12:23 am
Re: White Screen on 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket - ILI9341
Thanks for working with me. Glad the other screen ended up being okay.
Please be positive and constructive with your questions and comments.