Trouble getting parallel ili9341 working

KallDrexx
Posts: 13
Joined: Sun Jul 30, 2023 6:25 pm

Trouble getting parallel ili9341 working

Postby KallDrexx » Sun Jul 30, 2023 6:55 pm

I'm sure I'm setting something up wrong, since I'm new to esp32 (been working on Meadow and pi pico devices previously, not using arduino or platformIO).

I have an 8bit paralell ili9341 that came with an arduino style pin layout. Photos for my setup can be seen at this google album, but I soldered it to a prototype board to make it easier to attach to breadboards. While the soldering job is messy I have verified it works by using an Arduino example project. So now I'm trying to get the LCD working against my esp32-s3 using the example LCD project. I've gone through menuconfig and set the LCD model to ili9341, flashed my esp32-s3, and all I get is a white screen, which is consistent with power being on but the correct commands not being sent.

Serial output is at `Display LVGL animation` which seems to mean it's gotten to the point where it's trying to send visuals to the screen, but I have nothing.

The current pinout I have from my LCD (left) to my esp32 devkit are:
  • A/5v -> 5v
  • B/Gnd -> Gnd
  • F/LCD_RD -> 5v (Had to do this on the pico for it to work to keep it held high
  • G/LCD_WR -> gpio21
  • H/LCD_RS -> gpio47
  • I/LCD_CS -> gpio48
  • J/LCD_RST -> gpio45
  • M/LCD_07 -> gpio39
  • N/LCD_06 -> gpio40
  • O/LCD_05 -> gpio41
  • P/LCD_04 -> gpio42
  • Q/LCD_03 -> gpio2
  • R/LCD_02 -> gpio1
  • S/LCD_01 -> gpio44
  • T/LCD_00 -> gpio43
I modified the example code pinouts to match

Code: Select all

#define EXAMPLE_PIN_NUM_DATA0          43
#define EXAMPLE_PIN_NUM_DATA1          44
#define EXAMPLE_PIN_NUM_DATA2          1
#define EXAMPLE_PIN_NUM_DATA3          2
#define EXAMPLE_PIN_NUM_DATA4          42
#define EXAMPLE_PIN_NUM_DATA5          41
#define EXAMPLE_PIN_NUM_DATA6          40
#define EXAMPLE_PIN_NUM_DATA7          39

#define EXAMPLE_PIN_NUM_PCLK           21
#define EXAMPLE_PIN_NUM_CS             48
#define EXAMPLE_PIN_NUM_DC             47
#define EXAMPLE_PIN_NUM_RST            45
#define EXAMPLE_PIN_NUM_BK_LIGHT       4

#define EXAMPLE_LCD_H_RES              240
#define EXAMPLE_LCD_V_RES              320
I didn't see anything else that made sense modify. I set backlight to an unused pin since I don't have a pinout for it and don't need to do anything for it currently (at least from my tests on the pi pico).

Anyone see anything obvious for what I'm doing wrong?

KallDrexx
Posts: 13
Joined: Sun Jul 30, 2023 6:25 pm

Re: Trouble getting parallel ili9341 working

Postby KallDrexx » Mon Jul 31, 2023 1:33 am

Well I instead reverted the code and redid the wiring to match the original example, and it works. So I must either be using pins that I shouldn't be using, or wired something wrong.

Who is online

Users browsing this forum: No registered users and 77 guests