@@ -28,6 +28,15 @@ general:
28
28
runevery : 1m
29
29
# Board name, as defined in Zephyr.
30
30
board : nrf52840dongle_nrf52840
31
+
32
+ # Defines specific major & minor version that should be used.
33
+ # Later patch version can be automatically selected by the program,
34
+ # if specific version is not found.
35
+ # I.e. if requested v2.7.0, but only v2.7.2 is found - v2.7.2 will be used instead.
36
+ # Higher then minimum supported version can be specified (but may be incompatible),
37
+ # but lower then minimum version will result in an error.
38
+ # This is optional configuration.
39
+ ncs_version : v2.7.0
31
40
32
41
# This paths are necessary to build the generated firmware.
33
42
# If nRF Connect setup was done with VS Code extension -
@@ -57,10 +66,10 @@ general:
57
66
# This section is for defining peripherals
58
67
# on the board. I.e. uart, spi, i2c, etc.
59
68
# NOTE: Only changes should be defined here.
60
- # See https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/<arch >/<board_name>/<board_name>.dts
69
+ # See https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/<vendor >/<board_name>/<board_name>.dts
61
70
# for existing definitions for the board.
62
71
# For example nRF52840 Dongle would have board devicetree at
63
- # https://github.com/zephyrproject-rtos/zephyr/tree/main /boards/arm/nrf52840dongle_nrf52840 /nrf52840dongle_nrf52840.dts
72
+ # https://github.com/zephyrproject-rtos/zephyr/blob/26603cefaf41298c417f2eee834ed40d9ab35d3a /boards/nordic/nrf52840dongle /nrf52840dongle_nrf52840.dts
64
73
board :
65
74
# Specifically define bootloader for the board.
66
75
# This field is optional, and in most cases this might not be needed.
@@ -74,6 +83,12 @@ board:
74
83
# to be selected one, even if the value is empty string.
75
84
# bootloader: nrf52_legacy
76
85
86
+ # This will make "button0" factory reset button.
87
+ # Pressing this button for at least 5 seconds
88
+ # would remove current network configuration,
89
+ # allowing it to be connected to another network.
90
+ factory_reset_button : button0
91
+
77
92
# This option will add UART loging functionality.
78
93
# User can choose which console to use(usb or uart).
79
94
# UART has to be defined either in default device tree,
@@ -103,6 +118,20 @@ board:
103
118
# By default device will be configured as sleepy end device.
104
119
# Note: Enabling router will increase the size of the firmware.
105
120
is_router : false
121
+ # Buttons is optional, to provide information about available buttons on the board.
122
+ # Available button is not necessary a physical button, but can also be a pin.
123
+ buttons :
124
+ # If only ID is provided it means that this button is already present in board definition,
125
+ # and it will be just referenced from it.
126
+ - id : button0
127
+ # Button can also have a pin, which will create new "button" on specified pin.
128
+ # To make it active-low - set "inverted" configuration option to "true".
129
+ - id : button1
130
+ pin :
131
+ port : 0
132
+ pin : 18
133
+ inverted : true
134
+
106
135
# I2C is optional, only to provide different pins for i2c instance(s)
107
136
i2c :
108
137
# ID of instance is the same as defined in the SoC definition.
@@ -121,7 +150,7 @@ board:
121
150
rx : 1.10
122
151
leds :
123
152
- id : led_green
124
- # The ` pin` section is optional, if led is already present in board definition.
153
+ # The pin definition is optional, if led is already present in board definition.
125
154
pin :
126
155
port : 0
127
156
pin : 6
@@ -130,7 +159,7 @@ board:
130
159
# Sensors define a list of devices that
131
160
# can provide sensor values or be controlled
132
161
sensors :
133
- # All sensors have type, and most will
162
+ # All sensors have type, and most will,
134
163
# also have sensor-specific configuration.
135
164
- type : bme680
136
165
i2c :
@@ -153,6 +182,36 @@ sensors:
153
182
# port: 0
154
183
# pin: 6
155
184
# inverted: true
185
+ # Add a dht sensor from aosong manufacturer
186
+ # If DHT22 or AM2302 is used, variant must be set to "dht22". DHT11 does not need variant.
187
+ # - type: dht
188
+ # variant: "dht22"
189
+ # pin:
190
+ # port: 1
191
+ # pin: 13
192
+ #
193
+ # power_config uses ADC to measure positive voltage
194
+ # on pin 0.04 and report it as a battery voltage.
195
+ # ZCL 4.9 will be implemented to do general
196
+ # electricity measurements through ADC.
197
+ # Capacitive mositure sensors would be added
198
+ # with ZCL 4.7.
199
+ # - type: power_config
200
+ # adc_pin: 0.04
201
+ # battery_rated_voltage: 3000
202
+ # battery_voltage_min_threshold: 2500
203
+ #
204
+ # This example is crude example of using soil_moisture_adc
205
+ # sensor to get water moisture percentage.
206
+ #
207
+ # Note: min & max mv values may differ for your sensor,
208
+ # so please test it and adjust them accordingly!
209
+ # - type: soil_moisture_adc
210
+ # adc_pin:
211
+ # pin: 0.04
212
+ # oversampling: 4
213
+ # min_moisture_mv: 730
214
+ # max_moisture_mv: 430
156
215
```
157
216
158
217
## Sensor options
0 commit comments