-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathplatformio.ini
More file actions
274 lines (256 loc) · 6.08 KB
/
platformio.ini
File metadata and controls
274 lines (256 loc) · 6.08 KB
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
; 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]
src_dir = firmware/src
default_envs = avaspark_esp32s3_touch_128, leafblaster_esp32s3_touch_amoled_143_co5300, leafblaster_esp32s3_touch_amoled_143_sh8601, pingumote_esp32s3_touch_amoled_132
[common]
debug_tool = esp-builtin
build_type = debug ; debug, test, release
debug_speed = 12000
board_build.partitions = firmware/partitions_16MB.csv
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board = seeed_xiao_esp32s3
extra_scripts =
pre:prebuild_hook.py
post:postbuild_hook.py
platform = espressif32@6.12.0
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
lib_deps =
lvgl/lvgl@8.4.0
lewisxhe/XPowersLib@0.3.1
lewisxhe/SensorLib@0.3.1
build_flags =
; PERF DEBUG CONFIG
-D LV_USE_PERF_MONITOR=0
-D CONFIG_LV_PERF_MONITOR_ALIGN_CENTER=1
-D LV_USE_REFR_DEBUG=0
; LVGL CONFIG - NOTE: Most of these are set by the board config
-D LV_COLOR_16_SWAP=1
; USER CONFIG
-D TX_RATE_MS=20 ; loop time in ms of the rc state transmit
-D INPUT_RATE_MS=10 ; loop time in ms of the input read
-D LV_DISP_DEF_REFR_PERIOD=20 ; refresh period in ms of the display
-D LV_INDEV_DEF_READ_PERIOD=10 ; read period in ms of the input device
[waveshare_esp32s3_touch_128]
extends = common
build_flags =
${common.build_flags}
-D LV_HOR_RES=240
-D LV_VER_RES=240
-D I2C_SDA=6
-D I2C_SCL=7
-D DISP_GC9A01=1
-D DISP_BL=2
-D DISP_MOSI=11
-D DISP_CLK=10
-D DISP_CS=9
-D DISP_DC=8
-D DISP_RST=14
-D DISP_BL_HIGH_LEVEL=1
-D TP_CST816S=1
-D TP_INT=5
-D TP_RST=13
-D BAT_ADC=0 ; GPIO1 (ADC1_CH0)
-D BAT_ADC_F=3
[env:avaspark_esp32s3_touch_128]
extends = waveshare_esp32s3_touch_128
build_flags =
${waveshare_esp32s3_touch_128.build_flags}
-D BUZZER_PWM=21
-D BUZZER_LEVEL=0
-D ACC1_POWER=33
-D LED_DATA=18
-D PRIMARY_BUTTON=15
-D JOYSTICK_X_ADC=6
-D JOYSTICK_X_ADC_UNIT=2
-D JOYSTICK_Y_ADC=5
-D JOYSTICK_Y_ADC_UNIT=2
[lilygo_esp32s3_tdisplay_143]
extends = common
build_flags =
${common.build_flags}
-D LV_HOR_RES=466
-D LV_VER_RES=466
-D I2C_SCL=6
-D I2C_SDA=7
-D DISP_SDIO0=11
-D DISP_SDIO1=13
-D DISP_SDIO2=14
-D DISP_SDIO3=15
-D DISP_CLK=12
-D DISP_CS=10
-D DISP_RST=17
-D DISP_BL=16 ;LCD_EN
-D TP_FT3168=1
-D TP_INT=9
-D BAT_ADC=3 ; GPIO4 (ADC1_CH3)
-D BAT_ADC_F=2
-D PMU_SY6970=1
[lilygo_esp32s3_tdisplay_143_co5300]
extends = lilygo_esp32s3_tdisplay_143
build_flags =
${lilygo_esp32s3_tdisplay_143.build_flags}
-D DISP_CO5300=1
-D PANEL_X_GAP=6
[lilygo_esp32s3_tdisplay_143_sh8601]
extends = lilygo_esp32s3_tdisplay_143
build_flags =
${lilygo_esp32s3_tdisplay_143.build_flags}
-D DISP_SH8601=1
[cowmote_esp32s3_tdisplay_143]
build_flags =
-D PRIMARY_BUTTON=47
-D JOYSTICK_X_ADC=0
-D JOYSTICK_X_ADC_UNIT=1
-D JOYSTICK_Y_ADC=1
-D JOYSTICK_Y_ADC_UNIT=1
-D BUZZER_PWM=46
[lilygo_esp32s3_tdisplay_164]
extends = common
build_flags =
${common.build_flags}
-D LV_HOR_RES=280
-D LV_VER_RES=456
-D SCALE_UI=1.5
-D SCALE_PADDING=0.5
-D SCALE_FONT=1.5
-D I2C_SCL=6
-D I2C_SDA=7
-D PANEL_X_GAP=20
-D PANEL_Y_GAP=0
-D DISP_CO5300=1
-D DISP_SDIO0=11
-D DISP_SDIO1=13
-D DISP_SDIO2=14
-D DISP_SDIO3=15
-D DISP_CLK=12
-D DISP_CS=10
-D DISP_RST=17
-D DISP_BL=16 ;LCD_EN
-D TP_FT3168=1
-D TP_INT=9
-D BAT_ADC=3 ; GPIO4 (ADC1_CH3)
-D BAT_ADC_F=2
-D PMU_SY6970=1
[waveshare_esp32s3_touch_amoled_143]
extends = common
build_flags =
${common.build_flags}
-D LV_HOR_RES=466
-D LV_VER_RES=466
-D I2C_SCL=48
-D I2C_SDA=47
-D DISP_SDIO0=11
-D DISP_SDIO1=12
-D DISP_SDIO2=13
-D DISP_SDIO3=14
-D DISP_CLK=10
-D DISP_CS=9
-D DISP_RST=21
-D DISP_BL=42 ;LCD_EN
-D TP_FT3168=1
-D BAT_ADC=3 ; GPIO4 (ADC1_CH3)
-D BAT_ADC_F=3
[waveshare_esp32s3_touch_amoled_143_co5300]
extends=waveshare_esp32s3_touch_amoled_143
build_flags =
${waveshare_esp32s3_touch_amoled_143.build_flags}
-D DISP_CO5300=1
-D PANEL_X_GAP=6
[waveshare_esp32s3_touch_amoled_143_sh8601]
extends=waveshare_esp32s3_touch_amoled_143
build_flags =
${waveshare_esp32s3_touch_amoled_143.build_flags}
-D DISP_SH8601=1
[leafblaster_esp32_s3_touch_amoled_143]
build_flags =
-D PRIMARY_BUTTON=16
-D JOYSTICK_Y_ADC=1
-D JOYSTICK_Y_ADC_UNIT=1
-D BUZZER_PWM=45
[env:leafblaster_esp32s3_touch_amoled_143_co5300]
extends = waveshare_esp32s3_touch_amoled_143_co5300
build_flags =
${waveshare_esp32s3_touch_amoled_143_co5300.build_flags}
${leafblaster_esp32_s3_touch_amoled_143.build_flags}
[env:leafblaster_esp32s3_touch_amoled_143_sh8601]
extends = waveshare_esp32s3_touch_amoled_143_sh8601
build_flags =
${waveshare_esp32s3_touch_amoled_143_sh8601.build_flags}
${leafblaster_esp32_s3_touch_amoled_143.build_flags}
[cowesp_esp32s3]
extends = common
build_flags =
${common.build_flags}
-D I2C_SCL=17
-D I2C_SDA=18
-D DISP_SDIO0=16
-D DISP_SDIO1=15
-D DISP_SDIO2=7
-D DISP_SDIO3=6
-D DISP_CLK=4
-D DISP_CS=5
-D DISP_RST=12
-D DISP_BL=11 ;LCD_EN
-D TP_INT=8
-D TP_RST=13
-D PMU_SY6970=1
-D PMU_INT=14
-D IMU_QMI8658=1
-D IMU_INT=2
-D BUZZER_PWM=48
-D ACC1_POWER=39
-D ACC2_POWER=46
-D ACC2_POWER_ON_LEVEL=0
-D LED_DATA=42
-D LED_COUNT=4
-D HAPTIC_DRV2605=1
-D HAPTIC_EN=45
[env:pingumote_esp32s3_touch_amoled_132]
extends = cowesp_esp32s3
build_flags =
${cowesp_esp32s3.build_flags}
-D LV_HOR_RES=466
-D LV_VER_RES=466
-D PRIMARY_BUTTON=3
-D JOYSTICK_Y_ADC=9
-D JOYSTICK_Y_ADC_UNIT=1
-D DISP_CO5300=1
-D PANEL_X_GAP=8
-D TP_FT3168=1
[env:waveshare_esp32s3_touch_amoled_206]
extends = common
build_flags =
${common.build_flags}
-D LV_HOR_RES=410
-D LV_VER_RES=502
-D PRIMARY_BUTTON=0
-D I2C_SCL=14
-D I2C_SDA=15
-D DISP_CO5300=1
-D PANEL_X_GAP=22
-D DISP_SDIO0=4
-D DISP_SDIO1=5
-D DISP_SDIO2=6
-D DISP_SDIO3=7
-D DISP_CLK=11
-D DISP_CS=12
-D DISP_RST=8
-D DISP_BL=13 ;LCD_EN
-D TP_FT3168=1
-D TP_INT=38
-D TP_RST=9
-D PMU_AXP2101=1
-D IMU_QMI8658=1
-D IMU_INT=21
-D UI_SHAPE=0 ; Circular UI