-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
89 lines (78 loc) · 1.9 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
[platformio]
description = BeeZ Node Firmware
extra_configs = device-data.ini
[common]
lib_deps =
Low-Power
ArduinoJson
Streaming
Adafruit Unified Sensor
Adafruit SHT31 Library
Adafruit AM2320 sensor library
build_flags =
'-D VERSION="Beez v2.1.0"'
-D DEBUG=1
-D CYCLE=5 ; in minutes - 5 min (5)
-D SENSING=4 ; in cycles - 20 min (4)
-D SENDING=12 ; in cycles - 1 h (12)
[env:WEIGHT]
platform = atmelavr
board = lora32u4II
framework = arduino
build_src_filter = +<*> -<.git/> -<svn/> +<*main.cpp*>
lib_deps =
${common.lib_deps}
https://github.com/matthijskooijman/arduino-lmic ; LMIC-Arduino
HX711
build_flags =
${common.build_flags}
-D DISABLE_PING
-D DISABLE_BEACONS
-D LoRaWAN
-D WEIGHT
-D LOADCELL_OFFSET=-12854
-D LOADCELL_DIVIDER=19190
; specific part
-D LoRa32u4IIv13
; test device
'-D _NAME_="bee•z - test"'
"-D NWK_S_KEY={}"
"-D APP_S_KEY={}"
"-D DEV_ADDR=0x00000000"
[env:LORA]
platform = atmelavr
board = lora32u4II
framework = arduino
build_src_filter = +<*> -<.git/> -<svn/> +<*main.cpp*>
lib_deps =
${common.lib_deps}
LoRa
build_flags =
${common.build_flags}
-D LORA
; specific part
-D LoRa32u4IIv12
; test device
'-D _NAME_="bee•z - test"'
"-D DEV_ADDR=0x00000000"
[env:TTN]
platform = atmelavr
board = lora32u4II
framework = arduino
build_src_filter = +<*> -<.git/> -<svn/> +<*main.cpp*>
lib_deps =
${common.lib_deps}
https://github.com/matthijskooijman/arduino-lmic
build_flags =
${common.build_flags}
-D DISABLE_PING
-D DISABLE_BEACONS
-D LoRaWAN
-D LoRa32u4IIv13
; test device
'-D _NAME_="bee•z - test"'
"-D NWK_S_KEY={}"
"-D APP_S_KEY={}"
"-D DEV_ADDR=0x00000000"
upload_speed = 115200
monitor_speed = 115200