-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
platformio.ini
255 lines (235 loc) · 6.52 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
; 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]
; uncomment only one
; default_envs = windows_64
; default_envs = mac_64
default_envs = elecrow_c3_1_28 ; ELECROW C3 LCD 1.28
; default_envs = lolin_c3_mini ; ESP32-C3 LVGL 1.28 Inch 240x240
; default_envs = lolin_s3_mini_1_28 ; Waveshare ESP32-S3-Touch-LCD-1.28
; default_envs = lolin_s3_mini_1_69 ; Waveshare ESP32-S3-Touch-LCD-1.69
; default_envs = rp2040_1_28 ; Waveshare PI-RP2040-Touch-LCD-1.28
; default_envs = rp2040_1_69 ; Waveshare PI-RP2040-Touch-LCD-1.69
; default_envs = esp32doit-devkit-v1
; default_envs = pipico ; raspberry pi pico
; default_envs = pipico2 ; raspberry pi pico 2
[env]
lib_deps =
lvgl/lvgl@^9.2.2
build_flags =
; -D LV_CONF_INCLUDE_SIMPLE
[emulator_64]
platform = native@^1.1.3
extra_scripts = support/sdl2_build_extra.py
build_flags =
${env.build_flags}
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
-lSDL2
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LV_CONF_PATH="${PROJECT_DIR}/include/lv_conf.h"
-D LV_MEM_CUSTOM=1
-D LV_USE_QRCODE=1
-D LV_DRV_NO_CONF
-D LV_USE_SDL=1
-D SDL_HOR_RES=240
-D SDL_VER_RES=240
-D SDL_ZOOM=1
lib_deps =
${env.lib_deps}
build_src_filter =
+<*>
+<../hal/sdl2>
[emulator_32]
extends = emulator_64
build_flags =
${emulator_64.build_flags}
-m32
build_src_filter =
${emulator_64.build_src_filter}
[env:windows_64]
extends = emulator_64
build_flags =
${emulator_64.build_flags}
-L C:/msys64/mingw64/lib/
-D SDL_INCLUDE_PATH="\"C:/msys64/mingw64/include/SDL2/SDL.h\""
build_src_filter = ${emulator_64.build_src_filter}
[env:mac_64]
extends = emulator_64
build_flags =
${emulator_64.build_flags}
-D SDL_INCLUDE_PATH="\"SDL2/SDL.h"\"
!find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /"
!find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /"
; -D LV_MEM_CUSTOM=1
-D LV_MEM_SIZE="(128U * 1024U)"
build_src_filter = ${emulator_64.build_src_filter}
[esp32]
platform = espressif32
framework = arduino
extra_scripts = post:support/hardware_build_extra.py
lib_deps =
${env.lib_deps}
lovyan03/LovyanGFX@^1.1.16
fbiego/ChronosESP32@^1.5.0
fbiego/Timber@^1.0.0
bblanchon/ArduinoJson@^7.1.0
build_flags =
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/esp32')]))"
-D LV_CONF_PATH="${PROJECT_DIR}/include/lv_conf.h"
-I lib
-D LV_TICK_CUSTOM=1
-D LV_MEM_CUSTOM=0
-D LV_USE_FS_FATFS=1
build_src_filter =
+<*>
+<../hal/esp32>
; ELECROW C3 LCD 1.28
[env:elecrow_c3_1_28]
extends = esp32
board = lolin_c3_mini
board_build.partitions = partitions.csv
lib_deps =
${esp32.lib_deps}
makuna/RTC@^2.4.3
build_flags =
${esp32.build_flags}
-D ELECROW_C3=1
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
; -D ENABLE_CUSTOM_FACE=1
-D LV_MEM_ADR=0
build_src_filter = ${esp32.build_src_filter}
; ESP32-C3 LVGL 1.28 Inch 240x240
[env:lolin_c3_mini]
extends = esp32
board = lolin_c3_mini
board_build.partitions = partitions.csv
lib_deps = ${esp32.lib_deps}
build_flags =
${esp32.build_flags}
-D ESPC3=1
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
; -D ENABLE_CUSTOM_FACE=1
-D LV_MEM_ADR=0
build_src_filter = ${esp32.build_src_filter}
; Waveshare ESP32-S3-Touch-LCD-1.28
[env:lolin_s3_mini_1_28]
extends = esp32
board = lolin_s3_mini
board_upload.flash_size = 16MB
board_build.flash_mode = dio
board_build.f_flash = 80000000L
board_build.partitions = partitions_16M.csv
lib_deps =
${esp32.lib_deps}
FastIMU=https://github.com/LiquidCGS/FastIMU/archive/refs/tags/1.2.6.zip
build_flags =
${esp32.build_flags}
-D ESPS3_1_28=1
-D LV_MEM_SIZE=144U*1024U
; -D ENABLE_CUSTOM_FACE=1
-D LV_USE_QRCODE=1
build_src_filter = ${esp32.build_src_filter}
; Waveshare ESP32-S3-Touch-LCD-1.69
[env:lolin_s3_mini_1_69]
extends = esp32
board = esp32-s3-devkitc-1
board_upload.flash_size = 16MB
board_build.flash_mode = dio
board_build.f_flash = 80000000L
board_build.partitions = partitions_16M.csv ; app3M_fat9M_16MB.csv
lib_deps =
${esp32.lib_deps}
FastIMU=https://github.com/LiquidCGS/FastIMU/archive/refs/tags/1.2.6.zip
build_flags =
${esp32.build_flags}
-D ESPS3_1_69=1
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
build_src_filter = ${esp32.build_src_filter}
[env:esp32doit-devkit-v1]
extends = esp32
board = esp32doit-devkit-v1
board_build.partitions = partitions.csv
lib_deps = ${esp32.lib_deps}
build_flags =
${esp32.build_flags}
-D LV_MEM_SIZE=60U*1024U
-D LV_MEM_ADR=0
build_src_filter = ${esp32.build_src_filter}
[pico]
extra_scripts = post:support/hardware_build_extra.py
lib_deps =
${env.lib_deps}
lovyan03/LovyanGFX@^1.1.16
fbiego/Timber@^1.0.0
bblanchon/ArduinoJson@^7.1.0
build_flags =
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/pico')]))"
-D LV_CONF_PATH="${PROJECT_DIR}/include/lv_conf.h"
-I lib
-D LV_TICK_CUSTOM=1
-D LV_MEM_CUSTOM=0
build_src_filter =
+<*>
+<../hal/pico>
[env:rp2040_1_28]
extends = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = waveshare_rp2040_plus_16mb
framework = arduino
board_build.core = earlephilhower
lib_deps =
${pico.lib_deps}
FastIMU=https://github.com/LiquidCGS/FastIMU/archive/refs/tags/1.2.6.zip
build_flags =
${pico.build_flags}
-D PICO_1_28=1
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
build_src_filter = ${pico.build_src_filter}
[env:rp2040_1_69]
extends = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = waveshare_rp2040_plus_16mb
framework = arduino
board_build.core = earlephilhower
lib_deps = ${pico.lib_deps}
build_flags =
${pico.build_flags}
-D PICO_1_69=1
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
build_src_filter = ${pico.build_src_filter}
[env:pipico]
extends = pico
platform = raspberrypi
board = pico
framework = arduino
lib_deps = ${pico.lib_deps}
build_flags =
${pico.build_flags}
-D LV_MEM_SIZE=144U*1024U
-D LV_USE_QRCODE=1
-D NO_WATCHFACES=1
build_src_filter = ${pico.build_src_filter}
[env:pipico2]
extends = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico2
framework = arduino
board_build.core = earlephilhower
lib_deps = ${pico.lib_deps}
build_flags =
${pico.build_flags}
-D LV_USE_QRCODE=1
-D NO_WATCHFACES=1
build_src_filter = ${pico.build_src_filter}