/
platformio.ini
114 lines (105 loc) · 2.65 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
; PlatformIO project configuration file for Hiveeyes Arduino Firmwares
;
; 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/en/latest/projectconf/
[platformio]
src_dir = .
[env]
platform = atmelavr@^2
board = pro8MHzatmega328
framework = arduino
lib_deps =
apechinsky/MemoryFree@^0.3
mikem/RadioHead@^1.120
https://github.com/hiveeyes/StandardCplusplus#next
../libraries/Terrine
build_flags =
-fdiagnostics-color
# -pedantic
-Wall
-Wextra
extra_scripts = platformio_options.py
[node-common]
# Libraries needed by different `node` variants.
lib_deps =
${env.lib_deps}
bogde/HX711@0.7.4
lowpowerlab/LowPower_LowPowerLab@^2
markruys/DHT@^1
milesburton/DallasTemperature@^3
paulstoffregen/OneWire@^2
https://github.com/hiveeyes/embencode#next
../libraries/BERadio
[env:node-rh69]
board = pro8MHzatmega328
lib_deps =
${env.lib_deps}
${node-common.lib_deps}
build_flags =
${env.build_flags}
-D IS_NODE=true
-D CUSTOM_CONFIG=config_node.h
[env:node-rfm69]
board = pro8MHzatmega328
lib_deps =
${env.lib_deps}
${node-common.lib_deps}
lowpowerlab/RFM69@^1.5
build_flags =
${env.build_flags}
-D IS_NODE=true
# General
-D HE_SLEEP=true # Sleep between measurements.
# Sensors
-D HE_SCALE=true
-D HE_TEMPERATURE=true
-D HE_HUMIDITY=true
-D HX711_OFFSET=8361975
-D HX711_KNOWN_WEIGHT=21901
# Telemetry
-D HE_RADIO=true
-D HE_BERadio=true
-D HE_RFM69=true
-D HE_RFM69_OTA=true
# Debug
-D HE_DEBUG=true # Turn on debug output and choose below.
-D DEBUG_SENSORS=true # Set to 1 for sensor debug.
[env:relay]
board = uno
build_flags =
${env.build_flags}
-D IS_RELAY=true
-D HE_RADIO=true
-D HE_RH69=true
-D HE_RH95=true
[env:gateway-rh69]
board = uno
build_flags =
${env.build_flags}
-D IS_GATEWAY=true
-D HE_RADIO=true
-D HE_RH69=true
[env:gateway-rh95]
board = uno
build_flags =
${env.build_flags}
-D IS_GATEWAY=true
-D HE_RADIO=true
-D HE_RH95=true
[env:gateway-rh95-linkit7688]
# LinkIt Smart 7688 Duo Hiveeyes, 2017-04-02
# https://community.hiveeyes.org/t/linkit-smart-7688-duo-as-rfm95-to-wifi-beradio-gateway/229
board = smart7688
build_flags =
${env.build_flags}
-D IS_GATEWAY=true
-D HE_RADIO=true
-D HE_RH95=true
# Adjust radio pins for LinkIt Smart.
-D RH95_IRQ=3
-D RH95_SS=17