-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
platformio.ini
201 lines (176 loc) · 5 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
; CanAirIO Project 2018 - 2023
; ============================
; Author: @hpsaturn
; Documentation: https://canair.io/docs
; Contributors: https://github.com/kike-canaries/canairio_firmware/graphs/contributors
; https://github.com/kike-canaries/canairio_sensorlib/graphs/contributors
;
; Special thanks to:
; @roberbike and @jcomas (New devices and libraries, testing and support the users)
[platformio]
default_envs = TTGO_TDISPLAY
;extra_configs = ../canairio_sensorlib/unified-lib-deps.ini ; only for local tests of sensorslib
[common]
build_type = release
platform = espressif32 @ 4.4.0
framework = arduino
upload_speed = 1500000
monitor_speed = 115200
version = 0.6.1
revision = 979
# OTA remote update target (change it to none, if you want prevent CanAirIO updates)
target = prod
monitor_filters =
esp32_exception_decoder
; time
extra_scripts = pre:prebuild.py
build_flags =
-D CORE_DEBUG_LEVEL=0 # For debugging set to 3 and enable debug mode in the app
-D MIN_PUBLISH_INTERVAL=30 # Minimum interval between clouds updates
-D WAIT_FOR_PM_SENSOR=25 # time of stabilization of PM sensors in seconds
-D ARDUINO_ESP32_DEV=1 # compatibilty for DFRobot NH3/CO library
-D DISABLE_ALL_LIBRARY_WARNINGS=1
; -D DISABLE_CLI # uncomment to only have Bluetooth config via
; -D ENABLE_OTA # disable for memory saving, we have FOTA enable
lib_deps =
bblanchon/ArduinoJson @ 6.21.2
hpsaturn/ESP32 Wifi CLI @ 0.2.1
https://github.com/chrisjoyce911/esp32FOTA.git#2bbc9cb
https://github.com/rlogiacco/CircularBuffer.git#f29cf01
https://github.com/256dpi/arduino-mqtt.git#7afcfb1
https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#8e5f051
hpsaturn/CanAirIO Air Quality Sensors Library @ 0.7.3
; https://github.com/kike-canaries/canairio_sensorlib.git#devel
; ${commonlibs.lib_deps} ; only for local tests of sensorslib
[esp32_common]
build_type = ${common.build_type}
platform = ${common.platform}
board = lolin32
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
lib_deps = ${common.lib_deps}
monitor_filters = ${common.monitor_filters}
extra_scripts = ${common.extra_scripts}
board_build.partitions = min_spiffs.csv
build_flags =
${common.build_flags}
-D MAIN_HW_EN_PIN=27 # enable the main hardware pin (main sensor)
[oled_common]
extends = esp32_common
lib_ignore =
gui-utils-tft
lorawan
lib_deps =
${common.lib_deps}
U8g2 @ ^2.28.8
[env:TTGO_T7]
extends = oled_common
board = ttgo-t7-v14-mini32
[env:WEMOSOLED]
extends = oled_common
upload_speed = 921600
[env:HELTEC]
extends = oled_common
upload_speed = 921600
[env:TTGO_TQ]
extends = oled_common
[env:ESP32DEVKIT]
extends = oled_common
upload_speed = 921600
[env:ESP32PICOD4]
extends = oled_common
[env:M5ATOM]
extends = oled_common
board = esp32dev
lib_deps =
${oled_common.lib_deps}
fastled/FastLED@^3.5.0
m5stack/M5Atom@^0.1.0
[env:M5PICOD4]
extends = oled_common
build_flags =
${esp32_common.build_flags}
-D MAIN_HW_PIN=19
[tft_common]
extends = esp32_common
board = esp32dev
lib_ignore =
gui-utils-oled
lorawan
[env:TTGO_TDISPLAY]
extends = tft_common
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.5.31
build_flags =
${esp32_common.build_flags}
-D USER_SETUP_LOADED=1
-include .pio/libdeps/${PIOENV}/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
[env:M5STICKCPLUS]
extends = tft_common
lib_deps =
${common.lib_deps}
https://github.com/hpsaturn/M5StickC-Plus.git
[esp32c3_common]
platform = espressif32 @ 5.3.0
extends = oled_common
[env:ESP32C3]
extends = esp32c3_common
board = esp32-c3-devkitm-1
[env:ESP32C3OIPLUS]
extends = esp32c3_common
board = ttgo-t-oi-plus
[env:ESP32C3LOLIN]
extends = esp32c3_common
board = lolin_c3_mini
[env:ESP32C3SEEDX]
extends = esp32c3_common
board = seeed_xiao_esp32c3
[esp32s3_common]
extends = oled_common
platform = espressif32 @ 6.5.0
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
build_flags =
${common.build_flags}
-D BOARD_HAS_PSRAM=1
-mfix-esp32-psram-cache-issue
-D MAIN_HW_EN_PIN=3 # enable the main hardware pin (main sensor)
; ESP32S3 DEVKIT (Also ESP32S3 CAM)
[env:ESP32S3]
extends = esp32s3_common
[env:TTGO_T7S3]
extends = esp32s3_common
build_flags =
${esp32s3_common.build_flags}
-D ARDUINO_USB_CDC_ON_BOOT=1
[env:LORADEVKIT]
extends = esp32_common
upload_speed = 921600
board = ttgo-lora32-v1
lib_ignore =
gui-utils-tft
lib_deps =
${oled_common.lib_deps}
mcci-catena/MCCI LoRaWAN LMIC library @ ^4.1.1
lorawan
;nanopb/Nanopb@^0.4.7
;sabas1080/CayenneLPP @ ^1.1.0
https://github.com/ElectronicCats/CayenneLPP
build_flags =
${esp32_common.build_flags}
-D RXD2=23
-D TXD2=17
-D hal_init=LMICHAL_init
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D CFG_eu868=1
-D CFG_sx1276_radio=1
-D LMIC_PRINTF_TO=Serial
-D LMIC_DEBUG_LEVEL=2
-D DISABLE_PING=1
-D DISABLE_BEACONS=1
-D ARDUINO_SAMD_VARIANT_COMPLIANCE=1
-D TTGOLORA32V1
;lib_ignore = gui-utils-tft