-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
167 lines (140 loc) · 3.55 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
; 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 = windows_64
; default_envs = windows_32
; default_envs = mac_64
default_envs = elecrow32-terminal ; ELECROW ESP32 Terminal 3.5inch
; default_envs = wt32-sc01
; default_envs = wt32-sc01-plus
[env]
extra_scripts = pre:support/stars.py
lib_deps =
lvgl/lvgl@^8.4.0
build_flags =
-I lib
-D LV_LVGL_H_INCLUDE_SIMPLE
; native with sdl2
[native]
extends = env
platform = native@^1.1.3
extra_scripts =
${env.extra_scripts}
support/sdl2_build_extra.py
build_flags =
${env.build_flags}
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
-lSDL2
; SDL drivers options
-D LV_MEM_CUSTOM=1
-D LV_DRV_NO_CONF
-D USE_SDL
-D SDL_HOR_RES=320
-D SDL_VER_RES=480
-D SDL_ZOOM=1
lib_deps =
${env.lib_deps}
lv_drivers=https://github.com/lvgl/lv_drivers/archive/refs/tags/v8.2.0.zip
build_src_filter =
+<*>
+<../hal/sdl2>
[env:windows_64]
extends = native
build_flags =
${native.build_flags}
-D SDL_INCLUDE_PATH="\"C:/msys64/mingw64/include/SDL2/SDL.h\"" ; Windows
-L C:/msys64/mingw64/lib/ ; Windows
-D OS_WINDOWS=1
build_src_filter =
${native.build_src_filter}
[env:windows_32]
extends = native
build_flags =
${native.build_flags}
-m32
build_src_filter =
${native.build_src_filter}
[env:mac_64]
extends = native
build_flags =
${native.build_flags}
-D SDL_INCLUDE_PATH="\"SDL2/SDL.h"\" ;MACOS
-arch arm64 ; MACOS with apple silicon (eg M1)
!find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /" ;MACOS
!find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /" ;MACOS
build_src_filter =
${native.build_src_filter}
; esp32 hardware
[esp32]
platform = espressif32
framework = arduino
extra_scripts =
${env.extra_scripts}
lib_deps =
${env.lib_deps}
lovyan03/LovyanGFX@^1.1.16
fbiego/ChronosESP32@^1.4.0
fbiego/Timber@^1.0.0
adafruit/Adafruit AMG88xx Library @ ^1.3.2
build_flags =
${env.build_flags}
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/esp32')]))"
-D LV_TICK_CUSTOM=1
-D LV_MEM_CUSTOM=0
-D MIN_BG_IMG=1
build_src_filter =
+<*>
+<../hal/esp32>
[env:elecrow32-terminal]
extends = esp32
board = esp32-s3-devkitc-1
board_build.partitions = max_app_8MB.csv
lib_deps =
${esp32.lib_deps}
build_flags =
${esp32.build_flags}
-D ELECROW=1
-D LV_MEM_SIZE="(128U * 1024U)"
-D BUZZER=20
build_src_filter =
${esp32.build_src_filter}
[env:wt32-sc01]
extends = esp32
board = esp-wrover-kit
board_build.partitions = huge_app.csv
lib_deps =
${esp32.lib_deps}
smartpanle/PanelLan@^0.0.1
build_flags =
${esp32.build_flags}
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D LV_MEM_SIZE="(64U * 1024U)"
build_src_filter =
${esp32.build_src_filter}
[env:wt32-sc01-plus]
extends = esp32
board = esp32-s3-devkitc-1
board_build.partitions = max_app_8MB.csv
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
lib_deps =
${esp32.lib_deps}
smartpanle/PanelLan@^0.0.1
build_flags =
${esp32.build_flags}
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D PLUS=1
-D LV_MEM_SIZE="(96U * 1024U)"
build_src_filter =
${esp32.build_src_filter}