-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatformio.ini
239 lines (204 loc) · 6.63 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
;! @file platformio.ini
; @brief AG-Panel Project PlatformIO Project Configuration File
; @copyright (C) 2019-2023 Andriy Golovnya
; @author Andriy Golovnya ([email protected])
; @note https://docs.platformio.org/page/projectconf.html
; Common parameters
; =================
; PlatformIO parameters
; ---------------------
[platformio]
src_dir = ag-panel
build_dir = .pioenvs
lib_dir = .piolib
libdeps_dir = .piolibdeps
default_envs = uno, nanoatmega328, nanoatmega328new, diecimilaatmega328, nano_every, megaatmega2560, leonardo, mzeroUSB, zero, zeroUSB, due, dueUSB, adafruit_metro_m4, adafruit_grandcentral_m4, uno_r4_minima, uno_r4_wifi, LGT8F328P, bluepill_f103c8, blackpill_f401cc, d1_mini, d1_mini_pro, wemos_d1_mini32, lolin_c3_mini, lolin_s3_mini, pico, nanorp2040connect
; Common definitions
; ------------------
[common]
lib_deps =
arduino-libraries/LiquidCrystal
marcoschwartz/LiquidCrystal_I2C
adafruit/Adafruit MPR121
adafruit/Adafruit RGB LCD Shield Library
kiryanenko/TTP229
red-scorp/LiquidCrystal_AIP31068 ; https://github.com/red-scorp/LiquidCrystal_AIP31068/archive/master.zip
red-scorp/SoftSPIB ; https://github.com/red-scorp/SoftSPIB/archive/master.zip
gordonthree/pca9633 ; https://github.com/red-scorp/pca9633/archive/master.zip
olikraus/U8g2
build_flags =
-Wall
-std=c++11
; Common parameters for all boards
; --------------------------------
[env]
framework = arduino
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
check_flags = cppcheck: --suppress=*:*.piolibdeps\* --inline-suppr --suppress=unusedFunction
; Board descriptions
; ==================
; Arduino Uno and clones based on Atmega328 and Atmega328p chips
[env:uno]
platform = atmelavr
board = uno
; Arduino Nano and clones based on Atmega328 chip
[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
; Arduino Nano with new bootloader and clones based on Atmega328 chip
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
; Arduino Nano and Uno clones based on Atmega328pb chip
;[env:ATmega328PB]
;platform = atmelavr
;board = ATmega328PB
; Arduino Duemilanove and clones based on Atmega328 and Atmega328p chips
[env:diecimilaatmega328]
platform = atmelavr
board = diecimilaatmega328
; Arduino Nano Every and clones based on Atmega4809 chip
[env:nano_every]
platform = atmelmegaavr
board = nano_every
; Arduino Mega2560 and clones based on Atmega2560 chip
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
; Arduino Leonardo and clones based on Atmega32u4 chip
[env:leonardo]
platform = atmelavr
board = leonardo
; Arduino M0 and clones based on Samd21g18a chip
[env:mzeroUSB]
platform = atmelsam
board = mzeroUSB
; Arduino Zero (Programming Port) based on Samd21g18a chip
[env:zero]
platform = atmelsam
board = zero
; Arduino Zero (USB Native Port) and clones based on Samd21g18a chip
[env:zeroUSB]
platform = atmelsam
board = zeroUSB
; Arduino Due (Programming Port) and clones based on At91sam3x8e chip
[env:due]
platform = atmelsam
board = due
; Arduino Due (USB Native Port) and clones based on At91sam3x8e chip
[env:dueUSB]
platform = atmelsam
board = dueUSB
; Adafruit Metro M4 based on Samd51j19a
[env:adafruit_metro_m4]
platform = atmelsam
board = adafruit_metro_m4
; Adafruit Grand Central M4 based on Samd51p20a
[env:adafruit_grandcentral_m4]
platform = atmelsam
board = adafruit_grandcentral_m4
; Arduino Uno R4 minima
[env:uno_r4_minima]
platform = renesas-ra
board = uno_r4_minima
; Arduino Uno R4 WiFi
[env:uno_r4_wifi]
platform = renesas-ra
board = uno_r4_wifi
; MiniEVB replacement based on LGT8F328P chip
[env:LGT8F328P]
platform = lgt8f
board = LGT8F328P
; BluePill F103C8 and clones based on Stm32f103c8t6 chip
[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
build_flags = ${common.build_flags}
-DARDUINO_BLUEPILL_F103C8
-DARDUINO_ARCH_STM32
"-DBOARD_NAME=\"BLUEPILL_F103C8\""
-DSTM32F103xB
-DUSBCON
-DUSBD_VID=0
-DUSBD_PID=0
-DHAL_PCD_MODULE_ENABLED
-DUSBD_USE_CDC
-DHAL_UART_MODULE_ENABLED
upload_protocol = stlink
; BlackPill F401CC and clones based on Stm32f401cct6 chip
[env:blackpill_f401cc]
platform = ststm32
board = blackpill_f401cc
build_flags = ${common.build_flags}
-DARDUINO_BLACKPILL_F401CC
-DARDUINO_ARCH_STM32
"-DBOARD_NAME=\"BLACKPILL_F401CC\""
-DSTM32F401xC
-DUSBCON
-DUSBD_VID=0
-DUSBD_PID=0
-DHAL_PCD_MODULE_ENABLED
-DUSBD_USE_CDC
-DHAL_UART_MODULE_ENABLED
upload_protocol = stlink
; WeMos D1 and clones based on Esp8266 chip
[env:d1_mini]
platform = espressif8266
board = d1_mini
;lib_deps = ${common.lib_deps}
; plerup/EspSoftwareSerial
; WeMos D1 Mini Pro and clones based on Esp8266 chip
[env:d1_mini_pro]
platform = espressif8266
board = d1_mini_pro
;lib_deps = ${common.lib_deps}
; plerup/EspSoftwareSerial
; WeMos D1 Mini and clones based on Esp32 chip
[env:wemos_d1_mini32]
platform = espressif32
board = wemos_d1_mini32
lib_deps = ${common.lib_deps}
erropix/ESP32 AnalogWrite
plerup/EspSoftwareSerial
https://github.com/dok-net/ghostl # fix, see https://github.com/plerup/espsoftwareserial/issues/305
; WeMos LOLIN C3 mini
[env:lolin_c3_mini]
platform = espressif32
board = lolin_c3_mini
lib_deps = ${common.lib_deps}
erropix/ESP32 AnalogWrite
plerup/EspSoftwareSerial
https://github.com/dok-net/ghostl # fix, see https://github.com/plerup/espsoftwareserial/issues/305
; WeMos LOLIN S3 mini
[env:lolin_s3_mini]
platform = espressif32
board = lolin_s3_mini
lib_deps = ${common.lib_deps}
erropix/ESP32 AnalogWrite
plerup/EspSoftwareSerial
https://github.com/dok-net/ghostl # fix, see https://github.com/plerup/espsoftwareserial/issues/305
; Sipeed Longan Nano based on Gd32vf103cbt6 chip
;[env:sipeed-longan-nano]
;platform = gd32v
;board = sipeed-longan-nano
; Sipeed Maixduino based on Kendryte K210 chip
;[env:sipeed-maixduino]
;platform = kendryte210
;board = sipeed-maixduino
;build_flags = ${common.build_flags}
; -Wno-delete-non-virtual-dtor
; Raspberry Pi Pico and clones based on RP2040 chip
[env:pico]
platform = raspberrypi
board = pico
; Arduino Nano RP2040 Connect and clones, including RP2040-ProMini and RP2040-Eins, based on RP2040 chip
[env:nanorp2040connect]
platform = raspberrypi
board = nanorp2040connect
; Native framework for unit tests
[env:native_test]
platform = native
framework =
test_framework = unity
lib_deps =