-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
60 lines (55 loc) · 1.42 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
; 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 = feather32u4
extra_configs =
lorawan_keys.ini
; You MUST inject these options into [env:] section
; using ${common_env_data.***} (see below)
[common_env_data]
build_flags =
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D CFG_eu868=1
-D CFG_sx1276_radio=1
-D LMIC_USE_INTERRUPTS
-D DISABLE_PING
-D DISABLE_BEACONS
-D LMIC_DISABLE_DR_LEGACY
lib_deps_builtin =
SPI
lib_deps_external =
https://github.com/mcci-catena/arduino-lmic
Low-Power
; Empty settings so the parser is happy.
appeui =
deveui =
appkey =
[env]
platform = atmelavr
board = feather32u4
framework = arduino
monitor_speed = 115200
; Library options
lib_deps =
${common_env_data.lib_deps_builtin}
${common_env_data.lib_deps_external}
[env:feather32u4]
build_flags =
${common_env_data.build_flags}
${common_env_data.appeui}
${common_env_data.deveui}
${common_env_data.appkey}
; Regression build.
[env:feather32u4_reg_build]
build_flags =
${common_env_data.build_flags}
-DAPPEUI_KEY=0
-DDEVEUI_KEY=0
-DAPPKEY_KEY=0