-
Notifications
You must be signed in to change notification settings - Fork 4
/
platformio.ini
156 lines (132 loc) · 3.53 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = emulator_Core
[env]
build_flags =
-std=c++17
-I include
-I src/utility
; LVGL
-D LV_CONF_INCLUDE_SIMPLE
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LVGL_USE_V8=1 ; lvgl v8
-D LVGL_USE_V9=0 ; lvgl v9
; SDL2 includes, uncomment the next two lines on MAC OS if you intalled sdl via homebrew
; !pkg-config --cflags SDL2
; !pkg-config --libs SDL2
lib_deps =
https://github.com/m5stack/M5GFX#develop
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.3.0.zip ; lvgl v8
; lvgl=https://github.com/lvgl/lvgl#master ; lvgl v9
lib_archive = false
[env:emulator_common]
build_flags =
; uncomment the next line if running on MacOS Mx (arm64 architecture)
; -arch arm64
-l SDL2
${env.build_flags}
-D M5GFX_SHOW_FRAME
-D M5GFX_BACK_COLOR=0xFFFFFFU ; background color
-D M5GFX_SCALE=2
-D M5GFX_ROTATION=0
[env:emulator_Core]
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_M5Stack
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_Core/lvgl/demos>
[env:board_M5Core]
platform = espressif32
board = m5stack-fire
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5Stack
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5Core/lvgl/demos>
[env:emulator_Core2]
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_M5StackCore2
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_Core2/lvgl/demos>
[env:board_M5Core2]
platform = espressif32
board = m5stack-core2
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5StackCore2
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5Core2/lvgl/demos>
[env:emulator_CoreS3]
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_M5StackCoreS3
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_CoreS3/lvgl/demos>
[env:board_M5CoreS3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
build_flags =
${env.build_flags}
-D M5GFX_BOARD=board_M5StackCoreS3
-D BOARD_HAS_PSRAM
build_src_filter =
+<*>
+<../.pio/libdeps/board_M5CoreS3/lvgl/demos>
[env:emulator_StickCPlus]
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_M5StickCPlus
build_src_filter =
+<*>
+<../.pio/libdeps/emulator_StickCPlus/lvgl/demos>
[env:emulator_StickCPlus2]
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_M5StickCPlus2
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>