forked from ClusterDuck-Protocol/ClusterDuck-Protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
167 lines (145 loc) · 4.37 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
; 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
; Some useful platformio CLI commands to build and test the code.
; to build CDP code for the heltec_wifi_lora_32_V3 board.
; platformio run -e heltec_wifi_lora_32_V3
; to build and test ALL test cases for the heltec_wifi_lora_32_V3 board and upload it.
; **Make sure the board is connected to the computer and your serial monitor is closed.**
; platformio test -e test_heltec_wifi_lora_32_V3
; to build and test a given test case for the heltec_wifi_lora_32_V3 board and upload it.
; platformio test -e test_heltec_wifi_lora_32_V3 -f test_DuckUtils
[platformio]
; default_envs = heltec_wifi_lora_32_V3
; default_envs = heltec_wifi_lora_32_V2
default_envs = lilygo_t_beam_sx1262
; default_envs = ttgo_lora32_v1
; default_envs = test_heltec_wifi_lora_32_V3
; default_envs = test_lilygo_t_beam_sx1262
; default_envs = test_ttgo_lora32_v1
description = ClusterDuck Protocol Library
; our library is in the src directory
lib_dir = ./src
extra_configs = src/config/*.ini
[env]
monitor_speed = 115200
monitor_filters = time
lib_deps =
; common libraries to all the boards
contrem/arduino-timer@^3.0.1
olikraus/U8g2@^2.35.9
bblanchon/ArduinoJson@^7.0.3
bakercp/CRC32@^2.0.0
RadioLib@6.6.0
adafruit/Adafruit BusIO@^1.14.1
adafruit/Adafruit GFX Library@^1.11.5
adafruit/Adafruit SSD1306 @ ^2.5.7
https://github.com/OperatorFoundation/Crypto.git
build_flags =
-std=c++20
-Wno-inconsistent-missing-override
-Wno-missing-field-initializers
-Wno-format
-I ./src
-I ./src/include
-I ./src/include/boards
-DCDP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
; exclude all the other radios to speed up the build
-DRADIOLIB_EXCLUDE_CC1101
-DRADIOLIB_EXCLUDE_NRF24
-DRADIOLIB_EXCLUDE_RF69
-DRADIOLIB_EXCLUDE_SX1231
-DRADIOLIB_EXCLUDE_SX1233
-DRADIOLIB_EXCLUDE_SX128X
-DRADIOLIB_EXCLUDE_SI443X
-DRADIOLIB_EXCLUDE_RFM2X
-DRADIOLIB_EXCLUDE_AFSK
-DRADIOLIB_EXCLUDE_BELL
-DRADIOLIB_EXCLUDE_HELLSCHREIBER
-DRADIOLIB_EXCLUDE_MORSE
-DRADIOLIB_EXCLUDE_RTTY
-DRADIOLIB_EXCLUDE_SSTV
-DRADIOLIB_EXCLUDE_AX25
-DRADIOLIB_EXCLUDE_DIRECT_RECEIVE
-DRADIOLIB_EXCLUDE_BELL
-DRADIOLIB_EXCLUDE_PAGER
-DRADIOLIB_EXCLUDE_FSK4
-DRADIOLIB_EXCLUDE_APRS
-DRADIOLIB_EXCLUDE_LLCC68
[env:esp32_base]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
https://github.com/arduino/arduinoOTA.git
mathieucarbou/ESP Async WebServer@^2.7.0
[env:heltec_wifi_lora_32_V3]
; extends esp32_base environment which extends cdp_common environment
extends = esp32_base
board = heltec_wifi_lora_32_V3
[env:lilygo_t_beam_sx1262]
extends = esp32_base
board = ttgo-t-beam
lib_deps =
${env:esp32_base.lib_deps}
mikalhart/TinyGPSPlus @ ~1.0.2
lewisxhe/XPowersLib@^0.1.5
build_flags =
${env.build_flags}
[env:heltec_wifi_lora_32_V2]
extends = esp32_base
board = heltec_wifi_lora_32_V2
[env:ttgo_lora32_v1]
extends = esp32_base
board = ttgo-lora32-v1
lib_deps =
${env:esp32_base.lib_deps}
mikalhart/TinyGPSPlus @ ~1.0.2
lewisxhe/XPowersLib@^0.1.5
build_flags =
${env.build_flags}
;;--------------------------------------------------------------------------------
;; test environments
;;--------------------------------------------------------------------------------
;; -- HELTEC_WIFI_LORA_32_V2
[env:test_heltec_wifi_lora_32_V2]
extends =
esp32_base
cdp_common_test
board = ${env:heltec_wifi_lora_32_V2.board}
lib_deps =
${esp32_base.lib_deps}
SPI
WIRE
FS
WIFI
;; -- HELTEC_WIFI_LORA_32_V3
[env:test_heltec_wifi_lora_32_V3]
extends =
esp32_base
cdp_common_test
board = ${env:heltec_wifi_lora_32_V3.board}
lib_deps =
${esp32_base.lib_deps}
SPI
WIRE
FS
WIFI
;; -- LILYGO_T_BEAM_SX1262
[env:test_lilygo_t_beam_sx1262]
extends =
esp32_base
cdp_common_test
board = ${env:lilygo_t_beam_sx1262.board}
lib_deps =
${esp32_base.lib_deps}
SPI
WIRE
FS
WIFI