Closed GodVerture closed 1 year ago
Can you try not use GPIO19 and 20 for as the LCD HSYNC and VSYNC? They're used by USB by default. https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/gpio.html
There are no free pins to use,Can GPIO19 and GPIO20 be used as regular io?
it can. As long as you don't use the USB-Serial-JTAG as the console.
I ran the example with the GPIO mapping provided by you (didn't connect to an LCD though). My board didn't experience a "Power On Reset" like yours. Please check your power supply.
不接lcd屏的时候,我这边demo也是正常的,但是接上屏幕后,就会出现最开始提问的那种情况,请问有可能是什么原因引起的
Answers checklist.
IDF version.
esp-idf-v5.0.2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
esp32-s3-wroom-1u
Power Supply used.
External 5V
What is the expected behavior?
A scatter chart will show up on the LCD as expected.
What is the actual behavior?
run examples/peripherals/lcd/rgb_panel demo,Continue to restart
Steps to reproduce.
1.After running the program, the screen shines for about 30 seconds, but the backlight is not white, but a little blue 2.Then start to restart 3.Attach the changed code to more information
Debug Logs.
More Information.
According to the schematic diagram and the screen data changes are as follows: ``#define EXAMPLE_LCD_PIXEL_CLOCK_HZ (65 100 1000) //6.5Mhz
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_BK_LIGHT 4
define EXAMPLE_PIN_NUM_HSYNC 20
define EXAMPLE_PIN_NUM_VSYNC 19
define EXAMPLE_PIN_NUM_DE 15
define EXAMPLE_PIN_NUM_PCLK 7
define EXAMPLE_PIN_NUM_DATA0 39 // B0
define EXAMPLE_PIN_NUM_DATA1 48 // B1
define EXAMPLE_PIN_NUM_DATA2 47 // B2
define EXAMPLE_PIN_NUM_DATA3 21 // B3
define EXAMPLE_PIN_NUM_DATA4 14 // B4
define EXAMPLE_PIN_NUM_DATA5 13 // G0
define EXAMPLE_PIN_NUM_DATA6 12 // G1
define EXAMPLE_PIN_NUM_DATA7 11 // G2
define EXAMPLE_PIN_NUM_DATA8 10 // G3
define EXAMPLE_PIN_NUM_DATA9 16 // G4
define EXAMPLE_PIN_NUM_DATA10 38 // G5
define EXAMPLE_PIN_NUM_DATA11 46 // R0
define EXAMPLE_PIN_NUM_DATA12 8 // R1
define EXAMPLE_PIN_NUM_DATA13 3 // R2
define EXAMPLE_PIN_NUM_DATA14 40 // R3
define EXAMPLE_PIN_NUM_DATA15 9 // R4
define EXAMPLE_PIN_NUM_DISP_EN -1
// The pixel number in horizontal and vertical
define EXAMPLE_LCD_H_RES 320
define EXAMPLE_LCD_V_RES 240