Closed So1aric closed 10 months ago
please attach your initialization code and the changes you made in the menuconfig.
Here is my git diff
output:
diff --git a/examples/peripherals/lcd/i80_controller/main/Kconfig.projbuild b/examples/peripherals/lcd/i80_controller/main/Kconfig.projbuild
index 1edfd6df5f..9aae85c336 100644
--- a/examples/peripherals/lcd/i80_controller/main/Kconfig.projbuild
+++ b/examples/peripherals/lcd/i80_controller/main/Kconfig.projbuild
@@ -3,7 +3,7 @@ menu "Example Configuration"
config EXAMPLE_LCD_I80_COLOR_IN_PSRAM
bool "Allocate color data from PSRAM"
depends on IDF_TARGET_ESP32S3
- default y
+ default n
help
Enable this option if you wish to allocate the color buffer used by LVGL from PSRAM.
Unmatched PSRAM band width with LCD requirement can lead to blurred image display.
diff --git a/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c b/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c
index 8c2090f4a9..bc6b9c3599 100644
--- a/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c
+++ b/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c
@@ -41,14 +41,14 @@ static const char *TAG = "example";
#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 6
-#define EXAMPLE_PIN_NUM_DATA1 7
-#define EXAMPLE_PIN_NUM_DATA2 8
-#define EXAMPLE_PIN_NUM_DATA3 9
-#define EXAMPLE_PIN_NUM_DATA4 10
-#define EXAMPLE_PIN_NUM_DATA5 11
-#define EXAMPLE_PIN_NUM_DATA6 12
-#define EXAMPLE_PIN_NUM_DATA7 13
+#define EXAMPLE_PIN_NUM_DATA0 48
+#define EXAMPLE_PIN_NUM_DATA1 47
+#define EXAMPLE_PIN_NUM_DATA2 39
+#define EXAMPLE_PIN_NUM_DATA3 40
+#define EXAMPLE_PIN_NUM_DATA4 41
+#define EXAMPLE_PIN_NUM_DATA5 42
+#define EXAMPLE_PIN_NUM_DATA6 45
+#define EXAMPLE_PIN_NUM_DATA7 46
#if CONFIG_EXAMPLE_LCD_I80_BUS_WIDTH > 8
#define EXAMPLE_PIN_NUM_DATA8 14
#define EXAMPLE_PIN_NUM_DATA9 15
@@ -59,15 +59,15 @@ static const char *TAG = "example";
#define EXAMPLE_PIN_NUM_DATA14 20
#define EXAMPLE_PIN_NUM_DATA15 21
#endif
-#define EXAMPLE_PIN_NUM_PCLK 5
-#define EXAMPLE_PIN_NUM_CS 3
-#define EXAMPLE_PIN_NUM_DC 4
-#define EXAMPLE_PIN_NUM_RST 2
-#define EXAMPLE_PIN_NUM_BK_LIGHT 1
+#define EXAMPLE_PIN_NUM_PCLK 8
+#define EXAMPLE_PIN_NUM_CS 6
+#define EXAMPLE_PIN_NUM_DC 7
+#define EXAMPLE_PIN_NUM_RST -1
+#define EXAMPLE_PIN_NUM_BK_LIGHT 38
// The pixel number in horizontal and vertical
-#define EXAMPLE_LCD_H_RES 240
-#define EXAMPLE_LCD_V_RES 280
+#define EXAMPLE_LCD_H_RES 280
+#define EXAMPLE_LCD_V_RES 320
// Bit number used to represent command and parameter
#if CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ST7789
#define EXAMPLE_LCD_CMD_BITS 8
I edit Kconfig because there's something wrong with the psram and I want to get rid of it. For menuconfig, I only edit:
@suda-morris Sorry to bother, but, am I doing something wrong?
I have the same display, and was facing the same issue. The display requires the PWR_EN (IO10) to be HIGH for the display to be ON. I added the below code and was able to get the example to work.
First defined the pin PWR_EN
#define PWR_EN_PIN 10
before app_main
static void pwr_en(void)
{
// Set the GPIO as an output
gpio_set_direction(PWR_EN_PIN, GPIO_MODE_OUTPUT);
gpio_set_level(PWR_EN_PIN, 1);
}
in the app_main section on the first line added
pwr_en();
On compile and flash the example was displayed. Hope it helps
@crsrinidhi Thanks a lot! It does work.
Answers checklist.
IDF version.
v5.1.1
Espressif SoC revision.
ESP32-S3 (QFN56) (revision v0.2)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Custom Board (Lilygo T-HMI)
Power Supply used.
USB
What is the expected behavior?
The example works.
What is the actual behavior?
Nothing happened on the screen. It doesn't lit up.
Steps to reproduce.
Git pull the 5.1.1 release. Edit the pins. Build and flash.
Debug Logs.