-
Notifications
You must be signed in to change notification settings - Fork 5
/
platformio.ini
205 lines (173 loc) · 6.76 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
[env]
monitor_speed = 115200
lib_deps =
mikem/RadioHead@^1.120
config_wifi = -DUSE_WIFI -DWIFI_SSID=\"rf95modem\" -DWIFI_PSK=\"rf95modemwifi\"
config_ble = -DUSE_BLE
libs_display =
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.4.0
libs_gps =
mikalhart/TinyGPSPlus@^1.0.3
lewisxhe/AXP202X_Library@^1.1.3
; ================== BOARD PINOUTS ==================
; Heltec WiFi LoRa 32
[heltec_wifi_lora_32]
config_lora = -DRFM95_CS=18 -DRFM95_RST=14 -DRFM95_INT=26
config_display = -DUSE_DISPLAY -DOLED_ADDRESS=0x3c -DOLED_SDA=4 -DOLED_SCL=15 -DOLED_RST=16
[heltec_t_beam_v10]
config_lora = -DRFM95_CS=18 -DRFM95_RST=23 -DRFM95_INT=26
config_gps = -DUSE_GPS -DGPS_RX_PIN=34 -DGPS_TX_PIN=12
[heltec_t_beam_v07]
config_lora = -DRFM95_CS=18 -DRFM95_RST=23 -DRFM95_INT=26
config_gps = -DUSE_GPS -DGPS_RX_PIN=12 -DGPS_TX_PIN=15
; TTGO T-FOX (LORA v1.2)
[ttgo_t_fox]
config_lora = -DRFM95_CS=18 -DRFM95_RST=23 -DRFM95_INT=26
config_display = -DUSE_DISPLAY -DOLED_ADDRESS=0x3c -DOLED_SDA=21 -DOLED_SCL=22 -DOLED_RST=16
; Adafruit Feather M0
[adafruit_feather_m0]
config_lora = -DRFM95_CS=8 -DRFM95_RST=4 -DRFM95_INT=7
; Adafruit Feather 32u4
[adafruit_feather32u4]
config_lora = -DRFM95_CS=8 -DRFM95_RST=4 -DRFM95_INT=7
; ================== HELTEC ==================
[env:heltec_wifi_lora_32]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora}
lib_deps = ${env.lib_deps}
[env:heltec_wifi_lora_32_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${env.config_wifi}
lib_deps = ${env.lib_deps}
[env:heltec_wifi_lora_32_display]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${heltec_wifi_lora_32.config_display}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:heltec_wifi_lora_32_display_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${heltec_wifi_lora_32.config_display} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:heltec_wifi_lora_32_ble]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${env.config_ble}
lib_deps = ${env.lib_deps}
[env:heltec_wifi_lora_32_ble_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${env.config_ble} ${env.config_wifi}
lib_deps = ${env.lib_deps}
board_build.partitions = no_ota.csv
[env:heltec_wifi_lora_32_display_ble]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${heltec_wifi_lora_32.config_display} ${env.config_ble}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:heltec_wifi_lora_32_display_ble_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_wifi_lora_32.config_lora} ${heltec_wifi_lora_32.config_display} ${env.config_ble} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_display}
board_build.partitions = no_ota.csv
; ================== T-BEAM ==================
[env:t_beam_v10]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v10.config_lora} ${heltec_t_beam_v10.config_gps}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v10_ble]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v10.config_lora} ${heltec_t_beam_v10.config_gps} ${env.config_ble}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v10_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v10.config_lora} ${heltec_t_beam_v10.config_gps} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v10_ble_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v10.config_lora} ${heltec_t_beam_v10.config_gps} ${env.config_ble} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_gps}
board_build.partitions = no_ota.csv
[env:t_beam_v07]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v07.config_lora} ${heltec_t_beam_v07.config_gps}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v07_ble]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v07.config_lora} ${heltec_t_beam_v07.config_gps} ${env.config_ble}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v07_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v07.config_lora} ${heltec_t_beam_v07.config_gps} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_gps}
[env:t_beam_v07_ble_wifi]
platform = espressif32
board = heltec_wifi_lora_32
framework = arduino
build_flags = -fexceptions ${heltec_t_beam_v07.config_lora} ${heltec_t_beam_v07.config_gps} ${env.config_ble} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_gps}
board_build.partitions = no_ota.csv
; ================== TTGO LORA v1.2 / T-FOX ==================
[env:ttgo_t_fox_display]
platform = espressif32
board = ttgo-lora32-v2
framework = arduino
build_flags = -fexceptions ${ttgo_t_fox.config_display} ${ttgo_t_fox.config_lora}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:ttgo_t_fox_display_ble]
platform = espressif32
board = ttgo-lora32-v2
framework = arduino
build_flags = -fexceptions ${ttgo_t_fox.config_display} ${ttgo_t_fox.config_lora} ${env.config_ble}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:ttgo_t_fox_display_wifi]
platform = espressif32
board = ttgo-lora32-v2
framework = arduino
build_flags = -fexceptions ${ttgo_t_fox.config_display} ${ttgo_t_fox.config_lora} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_display}
[env:ttgo_t_fox_display_ble_wifi]
platform = espressif32
board = ttgo-lora32-v2
framework = arduino
build_flags = -fexceptions ${ttgo_t_fox.config_display} ${ttgo_t_fox.config_lora} ${env.config_ble} ${env.config_wifi}
lib_deps = ${env.lib_deps} ${env.libs_display}
board_build.partitions = no_ota.csv
; ================== ADAFRUIT ==================
[env:adafruit_feather_m0]
platform = atmelsam
board = adafruit_feather_m0
framework = arduino
build_flags = -DLED=13 ${adafruit_feather_m0.config_lora}
lib_deps = ${env.lib_deps}
[env:adafruit_feather32u4]
platform = atmelavr
board = feather32u4
framework = arduino
build_flags = -DLED=13 ${adafruit_feather32u4.config_lora}
lib_deps = ${env.lib_deps}