I'm trying to get the lvgl example (https://github.com/espressif/esp-idf/tr ... s/lcd/lvgl) working using an ESP32-S3 with an ILI9341 display.
I changed the code to reflect my wiring and the display spec:
Code: Select all
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////// Please update the following configuration according to your LCD spec //////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define EXAMPLE_LCD_PIXEL_CLOCK_HZ (10 * 1000 * 1000)
#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL 1
#define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL
#define EXAMPLE_PIN_NUM_DATA0 13 /// D0
#define EXAMPLE_PIN_NUM_DATA1 7 /// D1
#define EXAMPLE_PIN_NUM_DATA2 8 /// D2
#define EXAMPLE_PIN_NUM_DATA3 9 /// D3 Labels
#define EXAMPLE_PIN_NUM_DATA4 10 /// D4 on
#define EXAMPLE_PIN_NUM_DATA5 11 /// D5 TFT
#define EXAMPLE_PIN_NUM_DATA6 4 /// D6 breakout
#define EXAMPLE_PIN_NUM_DATA7 5 /// D7
#define EXAMPLE_PIN_NUM_PCLK 21 /// WR
#define EXAMPLE_PIN_NUM_CS 12 /// CS
#define EXAMPLE_PIN_NUM_DC 42 /// C/D
#define EXAMPLE_PIN_NUM_RST -1 /// (not connected)
#define EXAMPLE_PIN_NUM_BK_LIGHT 6 /// Lite
// The pixel number in horizontal and vertical
#define EXAMPLE_LCD_H_RES 240
#define EXAMPLE_LCD_V_RES 320
// Bit number used to represent command and parameter
#define EXAMPLE_LCD_CMD_BITS 8
#define EXAMPLE_LCD_PARAM_BITS 8
#define EXAMPLE_LVGL_TICK_PERIOD_MS 2
The same display works with the tjpgd example in SPI mode.
Any hints on what I might be doing wrong?
Hardware:
ESP32-S3-DevKitC-1
Adafruit 2.4" TFT LCD with Touchscreen Breakout w/MicroSD Socket - ILI9341 (https://www.adafruit.com/product/2478)
Pinouts in 8-bit mode: https://learn.adafruit.com/adafruit-2-4 ... -2500743-7
Software:
esp-idf release/v4.4 branch (ddc44956bf718540d5451e17e1becf6c7dffe5b8)