Skip to content

Instantly share code, notes, and snippets.

@mongonta0716
Last active May 27, 2025 12:01
Show Gist options
  • Save mongonta0716/fbb447875301ea00199af12e7b908bd4 to your computer and use it in GitHub Desktop.
Save mongonta0716/fbb447875301ea00199af12e7b908bd4 to your computer and use it in GitHub Desktop.
Tab5でLVGLを使うときのplatformio.ini
#define LV_COLOR_DEPTH 16
#define LV_COLOR_16_SWAP 1
#define LV_MEM_CUSTOM 1
#define LV_TICK_CUSTOM 1
; M5StackTab5
; lv_conf.hはsrcフォルダに入れます。
[platformio]
default_envs = m5stack-tab5
[common]
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
upload_speed = 1500000
lib_ldf_mode = deep
[env:m5stack-tab5]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino
board = esp32-p4-evboard
board_build.flash_mode = qio
board_build.flash_size = 16MB
board_build.partitions = default_16MB.csv
build_flags = -Wall
-Isrc/
-DLV_CONF_INCLUDE_SIMPLE
lib_deps = https://github.com/m5stack/M5Unified@>=0.2.7
https://github.com/m5stack/M5GFX@>=0.2.8
lvgl/[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment