Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem connecting ili9488 3.5" Touch Display to ESP32 #3539

Open
MRAbbasi1 opened this issue Nov 6, 2024 · 1 comment
Open

Problem connecting ili9488 3.5" Touch Display to ESP32 #3539

MRAbbasi1 opened this issue Nov 6, 2024 · 1 comment

Comments

@MRAbbasi1
Copy link

IMG_3520

Hello,
I am using 3.5" TFT LCD Shield with Arduino Uno and its work great, but in other project i can't use with esp32 SPI connection. Please guide me how to solve this issue?

`
######## wiring ########

  • LCD_CS GPIO 27
  • LCD_RST GPIO 26
  • LCD_DC (or LCD_RS) GPIO 33
  • LCD_WR GPIO 32
  • LCD_RD GPIO 25
  • D0 (Data 0) GPIO 5
  • D1 (Data 1) GPIO 18
  • D2 (Data 2) GPIO 19
  • D3 (Data 3) GPIO 21
  • D4 (Data 4) GPIO 22
  • D5 (Data 5) GPIO 23
  • D6 (Data 6) GPIO 14
  • D7 (Data 7) GPIO 12

`

`// ######## User_Setup.h ########

// Define the ILI9488 display driver
#define ILI9488_DRIVER

// Define the pins for ILI9488
#define TFT_CS 27 // Chip Select
#define TFT_RST 26 // Reset
#define TFT_DC 33 // Data/Command (or RS)
#define TFT_WR 32 // Write
#define TFT_RD 25 // Read

// Define the data pins (D0 to D7)
#define TFT_D0 5 // Data 0
#define TFT_D1 18 // Data 1
#define TFT_D2 19 // Data 2
#define TFT_D3 21 // Data 3
#define TFT_D4 22 // Data 4
#define TFT_D5 23 // Data 5
#define TFT_D6 14 // Data 6
#define TFT_D7 12 // Data 7

// Optional: Define the touch screen control pin
#define TOUCH_CS -1 // Chip select pin for touch screen (optional)

// Optional: Set the colour order if needed (swap Red/Blue)
#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue

// Optional: Enable inversion if the colours appear incorrect
// #define TFT_INVERSION_ON

`

@Basitadam
Copy link

Hi @MRAbbasi1,

Try adding this to your User_Setup.h file:
#define TFT_PARALLEL_8_BIT

BR,
Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants