0

I'm working on a project where I need to connect my ESP32 (WROOM) to a 3.5-inch, 480x320 resolution LCD designed for the Raspberry Pi, which uses the ILI9486 driver (as suggested by the lcd wiki). I’m currently trying to use the TFT_eSPI library with SPI mode, but I’m having trouble getting the display to respond correctly. These are my pins connections:

enter image description here

#include <TFT_eSPI.h> // Include the TFT library
TFT_eSPI tft = TFT_eSPI(); // Create an instance of the display
void setup() {
 // Initialize the display
 tft.init();
 tft.setRotation(1); // Adjust rotation as needed
 // Clear the screen with a color (e.g., black)
 tft.fillScreen(TFT_BLACK);
 // Display text to test
 tft.setTextColor(TFT_WHITE, TFT_BLACK); // White text on black background
 tft.drawString("Hello, ESP32!", 50, 100, 4); // Draw text at (50, 100) with font size 4} 
 void loop() {
 // Optional: Add more display functions here if needed
 }

This code is working fine with 2.8 inches 320x240 and ILI9341 drivers but not with 3.5 inches (320x480) display with ILI9486 drivers (also not with ILI9341). Guide me I am not expert in this.

asked Nov 12, 2024 at 20:20
3
  • What is your User_Setup.h settings? Commented Nov 13, 2024 at 23:46
  • User_Setup.h Commented Nov 14, 2024 at 0:52
  • Are you sure your display has ILI9486 driver? For 320x480 display, it could also supported by ILI9488 or ST7796 driver chip. Have you try any of those? Check with the vendor's website or ask them what chip the display is using. Commented Nov 14, 2024 at 13:32

1 Answer 1

0

Fixed the issue. Problem was 1 connection. Moved RST display connection from GPIO4 to EN on ESP32 and in User_Setup TFT_RST -1. Thanks everyone for your response.

answered Nov 22, 2024 at 0:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.