forked from ClusterDuck-Protocol/ClusterDuck-Protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
172 lines (139 loc) · 5.08 KB
/
platformio.ini
File metadata and controls
172 lines (139 loc) · 5.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
; 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
[env]
extra_scripts = pre:tools/example_select.py
[platformio]
description = ClusterDuck Protocol Library
lib_dir = ./src
extra_configs = src/config/*.ini
src_dir = ./examples/Basic-Ducks/MamaDuck
; uncomment the line below to build for your board
; ; Officially supported boards (LOCAL)
; default_envs = local_heltec_wifi_lora_32_V2
; default_envs = local_heltec_wifi_lora_32_V3
; default_envs = local_lilygo_t_beam_sx1262
; default_envs = local_lilygo_t_beam_sx1276
; default_envs = local_ttgo_lora32_v1_3
; ; Officially supported boards (PRODUCTION)
; default_envs = prod_heltec_wifi_lora_32_V3
; default_envs = prod_heltec_wifi_lora_32_V2
; default_envs = prod_lilygo_t_beam_sx1262
; default_envs = prod_lilygo_t_beam_sx1276
; default_envs = prod_ttgo_lora32_v1_3
; default_envs = test_heltec_wifi_lora_32_V3
; default_envs = test_lilygo_t_beam_sx1262
; default_envs = test_ttgo_lora32_v1
[esp32_base]
extends = cdp_common
platform = espressif32
board = esp32dev
framework = arduino
build_flags = ${cdp_common.build_flags}
[env:release_cdp]
extends = esp32_base
lib_deps =
${cdp_common.lib_deps}
https://github.com/ClusterDuck-Protocol/ClusterDuck-Protocol/archive/refs/tags/5.0.0.zip
[env:local_cdp]
extends = esp32_base
lib_deps =
${cdp_common.lib_deps}
symlink://./
; -------------------------------------------------------------------------------------------------------
; ---- PRODUCTION ENVIRONMENTS
; -------------------------------------------------------------------------------------------------------
; PRODUCTION HELTEC_WIFI_LORA_32_V2
[env:prod_heltec_wifi_lora_32_V2]
extends = env:release_cdp
board = heltec_wifi_lora_32_V2
; PRODUCTION HELTEC_WIFI_LORA_32_V3
[env:prod_heltec_wifi_lora_32_V3]
extends = env:release_cdp
board = heltec_wifi_lora_32_V3
; PRODUCTION LILYGO_T_BEAM_SX1262
[env:prod_lilygo_t_beam_sx1262]
extends = env:release_cdp
board = ttgo-t-beam
; PRODUCTION TTGO_LORA32_V1
[env:prod_lilygo_t_beam_sx1276]
extends = env:release_cdp
board = ttgo-lora32-v1
[env:prod_ttgo_lora32_v1_3]
extends = env:release_cdp
board = ttgo-lora32-v1
build_flags =
${env:cdp_common.build_flags}
-DTTGO_1_3
; -------------------------------------------------------------------------------------------------------
; ---- LOCAL ENVIRONMENTS
; -------------------------------------------------------------------------------------------------------
; LOCAL HELTEC_WIFI_LORA_32_V2
[env:local_heltec_wifi_lora_32_V2]
extends = env:local_cdp
board = heltec_wifi_lora_32_V2
; LOCAL HELTEC_WIFI_LORA_32_V3
[env:local_heltec_wifi_lora_32_V3]
extends = env:local_cdp
board = heltec_wifi_lora_32_V3
; LOCAL LILYGO_T_BEAM_SX1262
[env:local_lilygo_t_beam_sx1262]
extends = env:local_cdp
board = ttgo-t-beam
; LOCAL TTGO_LORA32_V1
[env:local_lilygo_t_beam_sx1276]
extends = env:local_cdp
board = ttgo-lora32-v1
[env:local_ttgo_lora32_v1_3]
extends = env:local_cdp
board = ttgo-lora32-v1
lib_deps =
${env:local_cdp.lib_deps}
build_flags =
${env:cdp_common.build_flags}
-DTTGO_1_3
;;--------------------------------------------------------------------------------
;; 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}
; 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}
; 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}
; FS
; WIFI