forked from DroidSector/FireFly-Nano-Remote
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplatformio.ini
More file actions
181 lines (147 loc) · 4.19 KB
/
platformio.ini
File metadata and controls
181 lines (147 loc) · 4.19 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
; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
; Upload one of the boards using COM port or OTA
; Upload method should be set in the environment code, if not specified, platformio will try to auto-find a COM port
;default_envs = Remote.Heltec.v2
default_envs = Receiver.Heltec.v2
; Upload both, receiver through OTA, remote through COM port
; default_envs = Receiver.Heltec.v2, Remote.Heltec.v2
; Upload these to their respective boards to set configuration values, will overwrite existing values
;default_envs = Receiver_SETCONF.Heltec.v2
; default_envs = Remote_SETCONF.Heltec.v2
; Testing environment
; default_envs = Test.Heltec.v2
;default_envs = Receiver.Heltec.v2, Remote.Heltec.v2, Receiver_SETCONF.Heltec.v2
[env:Remote.Heltec.v2]
framework = arduino
platform = espressif32@1.12.0
board = heltec_wifi_lora_32_V2
src_filter = ${dir.remote}
build_flags =
-w -include "src/boards/heltec-2.h"
lib_deps =
${common.lib_deps}
LoRa@0.7.2
lib_ignore = RadioHead, FlashStorage
upload_port = COM5
[env:Receiver.Heltec.v2]
framework = arduino
platform = espressif32@1.12.0
board = heltec_wifi_lora_32_V2
src_filter = ${dir.receiver}
build_flags =
-include "src/boards/heltec-2.h"
-include "include/wifi_credentials.h"
-w -D RECEIVER_SCREEN
lib_deps =
${common.lib_deps}
LoRa@0.7.2
;AsyncTCP@1.1.1
;ESP Async WebServer@1.2.3
lib_ignore = RadioHead, FlashStorage
;upload_port = COM5
; uncomment for OTA updates
upload_protocol = espota
upload_port = 192.168.178.132 ; IP from receiver screen
; Uncomment for .bin file
;extra_scripts = elf2bin.py
[env:Receiver_SETCONF.Heltec.v2]
framework = arduino
platform = espressif32
board = heltec_wifi_lora_32_V2
src_filter = ${dir.receiver_setconf}
build_flags =
-w -include "src/boards/heltec-2.h"
lib_deps =
${common.lib_deps}
LoRa
lib_ignore = RadioHead, FlashStorage
upload_port = COM5
[env:Remote_SETCONF.Heltec.v2]
framework = arduino
platform = espressif32
board = heltec_wifi_lora_32_V2
src_filter = ${dir.remote_setconf}
build_flags =
-w -include "src/boards/heltec-2.h"
lib_deps =
${common.lib_deps}
LoRa
lib_ignore = RadioHead, FlashStorage
upload_port = COM5
[env:Test.Heltec.v2]
framework = arduino
platform = espressif32
board = heltec_wifi_lora_32_V2
src_filter = ${dir.test}
build_flags =
-include "src/boards/heltec-2.h"
-include "include/wifi_credentials.h"
-w -D RECEIVER_SCREEN
lib_deps =
${common.lib_deps}
LoRa
lib_ignore = RadioHead, FlashStorage
upload_port = COM5
;; Old boards, not maintained, not compatible with this branch.
[env:Remote.TTGO.OLED.v1]
framework = arduino
platform = espressif32
board = ttgo-lora32-v1
src_filter = ${dir.remote}
build_flags =
-include "src/boards/ttgo-1.h"
lib_deps =
${common.lib_deps}
LoRa
lib_ignore = RadioHead, FlashStorage
[env:Receiver.TTGO.OLED.v1]
framework = arduino
platform = espressif32
board = ttgo-lora32-v1
src_filter = ${dir.receiver}
build_flags =
-include "src/boards/ttgo-1.h"
-include "include/wifi_credentials.h"
-w -D RECEIVER_SCREEN
lib_deps =
${common.lib_deps}
LoRa
lib_ignore = RadioHead, FlashStorage
[env:Remote.Feather]
platform = atmelsam
framework = arduino
board = adafruit_feather_m0
src_filter = ${dir.remote}
build_flags =
-w -include "src/boards/feather.h"
lib_deps =
${common.lib_deps}
RadioHead
FlashStorage
[env:Receiver.Feather]
platform = atmelsam
framework = arduino
board = adafruit_feather_m0
src_filter = ${dir.receiver}
build_flags =
-w -include "src/boards/feather.h"
lib_deps =
${common.lib_deps}
RadioHead
[dir]
remote = +<shared/> +<remote/> -<receiver/> -<test/> -<receiver_setconf/> -<remote_setconf/>
receiver = +<shared/> -<remote/> +<receiver/> -<test/> -<receiver_setconf/> -<remote_setconf/>
remote_setconf = -<shared/> -<remote/> -<receiver/> -<test/> -<receiver_setconf/> +<remote_setconf/>
receiver_setconf = -<shared/> -<remote/> -<receiver/> -<test/> +<receiver_setconf/> -<remote_setconf/>
test = +<shared/> -<remote/> -<receiver/> +<test/> -<receiver_setconf/> -<remote_setconf/>
[common]
lib_deps =
Wire
SPI
Adafruit GFX Library@1.7.5
Smoothed