Setting up lvgl_micropython on the Sunton ESP32 8048S043C 4.3" capacitive touch 800x480 LCD board #287
gitcnd
started this conversation in
Board Specific
Replies: 1 comment 8 replies
-
You do not need to make those changes to MicroPython in order to get the touch to work. That is what the |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is another working setup for another different kind of display.
Below is how I got the screen and touch working on my ESP32 8048S043
Note:-
This board uses GPIO pins 19 and 20 for the touch controller, which micropython reserves for JTAG - so you need to use the
--enable-cdc-repl=n --enable-jtag-repl=n
options during the build:Build:-
python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=GT911 --enable-cdc-repl=n --enable-jtag-repl=n
(Optional) backup your flash before overwriting it:
export PORT=/dev/ttyS6 esptool.py --port $PORT read_flash 0x0 0x400000 lcd_3.5inch_ESP32-8048S043C.bin
Flash:-
esptool.py --port $PORT write_flash 0x0 lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-8.bin
Upload a test:-
ampy --port $PORT put lvgl_test_8048S043C.py
Run it:-
mcu_serial.pl -port $PORT import lvgl_test_8048S043C
The test program:
Screenshots:-
Prebuilt working .bin :-) :-
LVGL (9.2.2) MicroPython (1.24.1) Binding compiled on 2025-02-05; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3
lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-8-Sunton-8048S043C.zip
flash as follows:-
Future:-
If I work out how to use the new .toml build system in future, I'll come back and amend this discussion.
Note:
This discussion post has been updated. The original post included instructions for changing files, which the
--enable-cdc-repl=n
and--enable-jtag-repl=n
options mitigate the need for.I plan to again update this discussion when the new .toml build process is tested and working.
Beta Was this translation helpful? Give feedback.
All reactions