-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
175 lines (160 loc) · 3.99 KB
/
Copy pathplatformio.ini
File metadata and controls
175 lines (160 loc) · 3.99 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
; PlatformIO Project Configuration File
;
; 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
[platformio]
default_envs = tbeam
[common]
monitor_speed = 115200
build_flags =
-D DO_WORK_INTERVAL_SECONDS=60
lib_deps =
olikraus/U8g2
lnlp/EasyLed
bblanchon/ArduinoJson@^6.21.0
ottowinter/ESPAsyncWebServer-esphome@^3.1.0
; ayushsharma82/AsyncElegantOTA @ ^2.2.5
DNSServer
[esp32]
build_flags =
-D hal_init=LMICHAL_init
[mcci_lmic]
lib_deps =
mcci-catena/MCCI LoRaWAN LMIC library
build_flags =
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D DISABLE_PING
-D DISABLE_BEACONS
-D USE_ORIGINAL_AES
-D CFG_eu868=1
[classic_lmic]
lib_deps =
matthijskooijman/IBM LMIC framework
build_flags =
-D DISABLE_PING
-D DISABLE_BEACONS
[env:ttgo-lora32-v2]
platform = espressif32@6.12.0
board = ttgo-lora32-v2
framework = arduino
upload_speed = 115200
monitor_speed = ${common.monitor_speed}
extra_scripts = extra_script.py
board_build.filesystem = littlefs
; board_build.partitions = huge_app.csv # not required, increases Flash size for program
lib_deps =
${common.lib_deps}
${mcci_lmic.lib_deps}
mlesniew/PicoMQTT@^0.3.2
adafruit/RTClib@^2.1.1
lewisxhe/XPowersLib @ ^0.2.0
mikalhart/TinyGPSPlus @ ^1.0.2
paulstoffregen/Time@^1.6.1
build_flags =
${common.build_flags}
${esp32.build_flags}
${mcci_lmic.build_flags}
-D BOARD_TTGO
-D DEV2
-D BSFILE=\"bsf_ttgo_lora32_v2.h\"
-D MONITOR_SPEED=${common.monitor_speed}
-D LMIC_PRINTF_TO=Serial
-D AXP
-D SLEEP_VAR=RTC_DATA_ATTR
-D USE_SERIAL
-D USE_DISPLAY
-D CFG_sx1276_radio=1
-D USE_RTC
; -D USE_SD
[env:lopy]
platform = espressif32
board = lopy
framework = arduino
upload_speed = 460800
monitor_speed = ${common.monitor_speed}
lib_deps =
${common.lib_deps}
${mcci_lmic.lib_deps}
mlesniew/PicoMQTT@^0.3.2
adafruit/RTClib@^2.1.1
build_flags =
${common.build_flags}
${esp32.build_flags}
${mcci_lmic.build_flags}
-D BOARD_LOPY
-D DEV4
-D BSFILE=\"bsf_lopy.h\"
-D MONITOR_SPEED=${common.monitor_speed}
-D LMIC_PRINTF_TO=Serial
-D USE_SERIAL
-D CFG_sx1272_radio=1
[env:tbeam]
platform = espressif32@ 6.12.0
board = ttgo-t-beam
framework = arduino
upload_speed = 460800
; upload_protocol = espota
; upload_port = 192.168.4.1
monitor_speed = ${common.monitor_speed}
extra_scripts = extra_script.py
board_build.filesystem = littlefs
; board_build.partitions = huge_app.csv # not required, increases Flash size for program
lib_deps =
${common.lib_deps}
${mcci_lmic.lib_deps}
mlesniew/PicoMQTT@^1.1.2
mlesniew/PicoWebsocket@^1.0.0
lewisxhe/XPowersLib @ ^0.2.0
mikalhart/TinyGPSPlus @ ^1.0.2
paulstoffregen/Time@^1.6.1
build_flags =
${common.build_flags}
${esp32.build_flags}
${mcci_lmic.build_flags}
-D BOARD_TBEAM
-D BSFILE=\"bsf_ttgo_t_beam.h\"
-D MONITOR_SPEED=${common.monitor_speed}
-D LMIC_PRINTF_TO=Serial
-D USE_SERIAL
-D USE_DISPLAY
-D CFG_sx1276_radio=1
-D AXP
-D SLEEP_VAR=RTC_DATA_ATTR
-D ESP32
[env:lolin_d32]
platform = espressif32@ 6.1.0
board = lolin_d32
framework = arduino
upload_speed = 115200
; upload_protocol = espota
; upload_port = 192.168.4.1
; upload_port = /dev/cu.usbserial-01D7A5E7
monitor_speed = ${common.monitor_speed}
extra_scripts = extra_script.py
board_build.filesystem = littlefs
board_build.partitions = huge_app.csv # not required, increases Flash size for program
lib_deps =
${common.lib_deps}
${mcci_lmic.lib_deps}
mlesniew/PicoMQTT@^0.3.2
lewisxhe/XPowersLib @ ^0.2.0
mikalhart/TinyGPSPlus @ ^1.0.2
paulstoffregen/Time@^1.6.1
build_flags =
${common.build_flags}
${esp32.build_flags}
${mcci_lmic.build_flags}
-D BOARD_DEV
-D BSFILE=\"bsf_lopy.h\"
-D MONITOR_SPEED=${common.monitor_speed}
-D LMIC_PRINTF_TO=Serial
-D USE_SERIAL
-D CFG_sx1276_radio=1
-D AXP
-D SLEEP_VAR=RTC_DATA_ATTR
-D ESP32