-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
167 lines (160 loc) · 6.33 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
; 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 =
; rak4631-debug
rak4631-epd-4.2
; rak4631-epd-4.2-bsec
; rak4631-epd-3.52
; rak4631-epd-2.13
; rak4631-release
[common]
build_flags =
-DSW_VERSION_1=1 ; major version increase on API change / not backwards compatible
-DSW_VERSION_2=1 ; minor version increase on API change / backward compatible
-DSW_VERSION_3=0 ; patch version increase on bugfix, no affect on API
-DLIB_DEBUG=0 ; 0 Disable LoRaWAN debug output
-DAPI_DEBUG=0 ; 0 Disable WisBlock API debug output
-DBASE_BOARD=0 ; 1 = RAK19003 0 = other base boards
lib_deps =
beegee-tokyo/SX126x-Arduino
beegee-tokyo/WisBlock-API-V2
sparkfun/SparkFun SHTC3 Humidity and Temperature Sensor Library
adafruit/Adafruit LPS2X
ClosedCube/ClosedCube OPT3001
adafruit/Adafruit BME680 Library
sabas1080/CayenneLPP
rakwireless/RAKwireless VEML Light Sensor
sensirion/Sensirion Gas Index Algorithm
sensirion/Sensirion I2C SGP40
sensirion/Sensirion Core
pololu/VL53L0X
beegee-tokyo/nRF52_OLED
melopero/Melopero RV3028
beegee-tokyo/RAK12019_LTR390_UV_Light
pilotak/LPS35HW
sparkfun/SparkFun SCD30 Arduino Library
beegee-tokyo/RAKwireless Storage
adafruit/Adafruit EPD
sparkfun/SparkFun STC3x Arduino Library
beegee-tokyo/RAK12039_PM_Sensor
boschsensortec/BSEC Software Library @ 1.6.1480
mathertel/OneButton
[env:rak4631-release]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
monitor_speed=115200
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=0 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=0 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=3 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=1 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-release/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
pre:rename.py
post:create_uf2.py
[env:rak4631-debug]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=1 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=0 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=3 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=1 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-debug/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
post:create_uf2.py
[env:rak4631-epd-4.2]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
; upload_port = COM25
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=1 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=1 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=1 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=0 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-epd-4.2/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
post:create_uf2.py
[env:rak4631-epd-4.2-bsec]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=1 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=1 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=1 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=1 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-epd-4.2/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
post:create_uf2.py
[env:rak4631-epd-3.52]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=1 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=4 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=3 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=1 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-epd-3.52/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
post:create_uf2.py
[env:rak4631-epd-2.13]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
build_flags =
; -DCFG_DEBUG=1
${common.build_flags}
-DNO_BLE_LED=1
-DMY_DEBUG=1 ; 0 Disable application debug output
-DFAKE_GPS=0 ; 1 Enable to get a fake GPS position if no location fix could be obtained
-DHAS_EPD=3 ; 1 = RAK14000 4.2" present 2 = 2.13" BW present, 3 = 2.13" BWR present, 4 - 3.52" BW present, 0 = no RAK14000 present
-DEPD_ROTATION=3 ; 3 = top at cable connection, 1 top opposite of cable connection. Only for 4.2" display
-D USE_BSEC=1 ; 1 = Use Bosch BSEC algo, 0 = use simple T/H/P readings
-L".pio/libdeps/rak4631-epd-2.13/BSEC Software Library/src/cortex-m4/fpv4-sp-d16-hard"
lib_deps =
${common.lib_deps}
extra_scripts =
post:create_uf2.py