-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
254 lines (230 loc) · 7.4 KB
/
platformio.ini
File metadata and controls
254 lines (230 loc) · 7.4 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
; 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
; Use default_envs and build_flags -D macros to select the target board in this file ONLY.
; TARGET SELECTION: uncomment a single active default_envs line below. ****************************
[platformio]
boards_dir = ../boards
;default_envs = all
;default_envs = esp32dev_keyestudio_ks0413 # ARDUINO_ARCH_ESP32 INIDEF_KEYESTUDIO_KS0413
;default_envs = esp32dev_cyd # ARDUINO_ARCH_ESP32 INIDEF_CYD
;default_envs = esp32dev_t_internet_com # ARDUINO_ARCH_ESP32 INIDEF_LILYGO_T_INTERNET_COM
;default_envs = uno # ARDUINO_ARCH_AVR INIDEF_UNO
;default_envs = megaatmega2560 # ARDUINO_ARCH_AVR INIDEF_MEGA2560
;default_envs = ethermega2560 # ARDUINO_ARCH_AVR INIDEF_ETHERMEGA2560
default_envs = lilygo-t-display-s3 # ARDUINO_ARCH_ESP32 INIDEF_LILYGO_T_DISPLAY_S3
;default_envs = lilygo-t-embed-s3 # ARDUINO_ARCH_ESP32 INIDEF_LILYGO_T_EMBED_S3
;default_envs = lilygo-t7-s3 # ARDUINO_ARCH_ESP32 INIDEF_LILYGO_T7_S3
; GENERIC SETTINGS ********************************************************************************
[env]
framework: arduino
lib_deps =
symlink://../../libraries/VirtSerial
symlink://../../libraries/CommsHelper # DOUBLE DEFINITION.
tcMenu
TaskManagerIO
IoAbstraction
tcUnicodeHelper
monitor_speed = 115200
upload_speed = 115200 # use for MEGA2560.
;upload_speed = 460800 # use for ESP32 for quicker uploads.
;upload_port = com16 # when this is not enabled, use PIO Auto upload setting to find the allocated comX port num.
; # use prefix of custom_ or board_ to avoid PIO warning in terminal window at compilation.
custom_build_flags_deps =
; -D INIDEF_ARDUINOOTA # 2023-09-28 if no wifi comms, check Windows firewall for Public and Private settings.
;upload_port = 192.168.20.11 # comment / uncomment to suit upload. IP_ADDR_DOUBLE_DEFINITION
;upload_protocol = espota # ***** comment / uncomment to suit upload.
; ARDUINOOTA OPERATIONS: UNCOMMENT THE TWO LINES ABOVE
; -D CORE_DEBUG_LEVEL=2
; *************************************************************************************************
; CUSTOM INDIVIDUAL TARGET BOARD SETTINGS *********************************************************
; *************************************************************************************************
[env:esp32dev_keyestudio_ks0413] # ESP32-WROOM OK 2023-08-18 **************************************
platform = espressif32
board = esp32dev
;board_build.partitions = min_spiffs.csv # NB: BluetoothSerial requires a lot of Flash storage
board_build.partitions = no_ota.csv
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_KEYESTUDIO_KS0413
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
; SPI
; BluetoothSerial # ONLY older ESP32 devices have hardware support for classic Bluetooth and SerialBT
[env:esp32dev_cyd] # **************************************
platform = espressif32
board = esp32dev
monitor_filters = esp32_exception_decoder
;upload_speed = 921600
board_build.partitions=min_spiffs.csv
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_CYD
-DUSER_SETUP_LOADED
-DUSE_HSPI_PORT
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DTFT_BL=21
-DTFT_BACKLIGHT_ON=HIGH
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DLOAD_GLCD
-DLOAD_FONT2
-DLOAD_FONT4
-DLOAD_FONT6
-DLOAD_FONT7
-DLOAD_FONT8
-DLOAD_GFXFF
-DILI9341_2_DRIVER
lib_deps =
${env.lib_deps}
bodmer/TFT_eSPI@^2.5.33
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git#v1.4
ESP32Servo
[env:lilygo-t-display-s3] # *********************************************************************
; 2023-06-21 For lilygo-t-display-s3 TCM, rotary encoder, embedControl only work with PIO Serial Terminal open. Why?
platform = espressif32
board = lilygo-t-display-s3
; 20231210 THIS MAY STOP OTA UPLOAD : board_build.partitions = huge_app.csv
;
build_flags =
${env.custom_build_flags_deps}
-I ../boards
-D INIDEF_LILYGO_T_DISPLAY_S3 # CUSTOM TFT_eSPI specific User_Setup_Select.h for Setup206_LilyGo_T_Display_S3.h
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
${env.lib_deps}
TFT_eSPI
; WiFi
ESP32Servo
CommsHelper # DOUBLE DEFINITION. 2025-06-30 Without this linker undefined references cause errors. why is this reqd ?
[env:lilygo-t-embed-s3] # ***********************************************************************
platform = espressif32
board = lilygo-t-embed
;board_build.partitions = huge_app.csv
;board_build.arduino.memory_type = opi_qspi
;
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_LILYGO_T_EMBED_S3 # CUSTOM TFT_eSPI specific User_Setup_Select.h for Setup210_LilyGo_T_Embed_S3.h
-D LV_LVGL_H_INCLUDE_SIMPLE
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
${env.lib_deps}
TFT_eSPI
APA102 # for up to 7x onboard RGBLEDs.
[env:lilygo-t7-s3] # ***************************************************************************
platform = espressif32
board = lilygo-t7-s3
; 20231210 THIS MAY STOP OTA UPLOAD : board_build.partitions = huge_app.csv
;board_build.arduino.memory_type = opi_qspi
;
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_LILYGO_T7_S3
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
ESP32Servo
; SPI
; Serial
[env:esp32dev_t_internet_com] # ESP32-WROVER-E *****************************************
platform = espressif32
board = esp32dev
;board = esp-wrover-kit
;board_build.partitions = no_ota.csv # more memory for flash
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_LILYGO_T_INTERNET_COM
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
adafruit/Adafruit NeoPixel@^1.11.0 # for RGB led(s)
; SPI
SPI@2.0.0
; ETH # lilygo special library for t-internet-com board.
; arduino-libraries/Ethernet # for wifi support to creat wired ethernet support
paulstoffregen/Ethernet
; uipethernet/UIPEthernet
; stm32duino/STM32Ethernet
[env:uno] # *******************************************************************************************
platform = atmelavr
board = uno
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
Servo
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_UNO
[env:megaatmega2560] # *************************************************************************
platform = atmelavr
board = megaatmega2560
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
Servo
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_MEGA2560
[env:ethermega2560] # *************************************************************************
platform = atmelavr
board = megaatmega2560
lib_deps =
${env.lib_deps}
LiquidCrystalIO
Adafruit GFX Library
Adafruit BusIO
Adafruit ILI9341
Ethernet
SPI
WIFI # library needed? but ethermega2560 has no wifi hardware.
Servo
build_flags =
${env.build_flags}
-I ../boards
-D INIDEF_ETHERMEGA2560
;
; END_OF_FILE
;