Setting up lvgl_micropython on the Sunton ESP32 3248S035C 3.5" capacitive touch 480x320 LCD board #282
Replies: 2 comments 7 replies
-
Might I make a suggestion for ya.. Create specific "board" setup files using TOML. There is an example in the root directory that shows how it is done. If you have any questions I would be more than happy to help you out with it. The TOML files are written so it will provide all of the build commands and it will write the driver code and bake the driver code into the firmware as a model named "display" |
Beta Was this translation helpful? Give feedback.
-
Hmm. The .toml build fails? It seems to be looking for a build_command section?:
make.py line 62: I don't see that mentioned in the doc? I was attempting to see if this new build idea might fix my i2c issue... [devnull@cdc: Err:1/lvgl]$ cat custom_board_and_toml_examples/esp32_8048S043/esp32_8048S043.toml
|
Beta Was this translation helpful? Give feedback.
-
Here is another working setup for another different kind of display.
Below is how I got the screen and touch working on my ESP32 3248S035
Build:-
python3 make.py esp32 BOARD=ESP32_GENERIC BOARD_VARIANT=SPIRAM DISPLAY=st7796 INDEV=gt911
(Optional) backup your flash before overwriting it:
export PORT=/dev/ttyS6 esptool.py --port $PORT read_flash 0x0 0x400000 lcd_3.5inch_ESP32-3248S035C.bin
Flash:-
esptool.py --port $PORT write_flash 0x0 lvgl_micropy_ESP32_GENERIC-SPIRAM-4.bin
Upload a test:-
ampy --port $PORT put lvgl_test_3248S035C.py
Run it:-
mcu_serial.pl -port $PORT import lvgl_test_3248S035C
The test program:
Screenshots:-
Beta Was this translation helpful? Give feedback.
All reactions