Skip to content

Commit

Permalink
Add Dial support
Browse files Browse the repository at this point in the history
  • Loading branch information
imliubo committed Mar 5, 2024
1 parent 7b6ce9c commit e563478
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Now we have also added a picture of the device shell as the border background,
which can better simulate the display effect on the device side.

<div align=center>
<img src="images/lv_m5stack_fire.gif" width="25%"><img src="images/lv_m5stack_core2.gif" width="25%"><img src="images/lv_m5stack_cores3.gif" width="25%">
<img src="images/lv_m5stack_fire.gif" width="25%"><img src="images/lv_m5stack_core2.gif" width="25%"><img src="images/lv_m5stack_cores3.gif" width="25%"><img src="images/lv_m5stack_dial.gif" width="24.78%">
</div>

## How to install & use demo
Expand Down
Binary file added images/lv_m5stack_dial.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ lib_archive = false
build_flags =
-l SDL2
${env.build_flags}
-D M5GFX_BACK_COLOR=0xFFFFFFU
-D M5GFX_SHOW_FRAME
-D M5GFX_BACK_COLOR=0xFFFFFFU ; background color
-D M5GFX_SCALE=2
-D M5GFX_ROTATION=0

Expand Down Expand Up @@ -140,3 +140,15 @@ build_flags =
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_StickCPlus2/lvgl/demos>


[env:emulator_Dial]
platform = native@^1.2.1
extra_scripts = support/sdl2_build_extra.py
build_type = debug
build_flags =
${env:emulator_common.build_flags}
-D M5GFX_BOARD=board_M5Dial
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_Dial/lvgl/demos>

0 comments on commit e563478

Please sign in to comment.