@@ -56,6 +56,12 @@ board:
56
56
# to be selected one, even if the value is empty string.
57
57
# bootloader: nrf52_legacy
58
58
59
+ # This will make "btn1" factory reset button.
60
+ # Pressing this button for at least 5 seconds
61
+ # would remove current network configuration,
62
+ # allowing it to be connected to another network.
63
+ factory_reset_button : btn1
64
+
59
65
# This option will add UART loging functionality.
60
66
# User can choose which console to use(usb or uart).
61
67
# UART has to be defined either in default device tree,
@@ -85,6 +91,20 @@ board:
85
91
# By default device will be configured as sleepy end device.
86
92
# Note: Enabling router will increase the size of the firmware.
87
93
is_router : false
94
+ # Buttons is optional, to provide information about available buttons on the board.
95
+ # Available button is not necessary a physical button, but can also be a pin.
96
+ buttons :
97
+ # If only ID is provided it means that this button is already present in board definition,
98
+ # and it will be just referenced from it.
99
+ - id : btn1
100
+ # Button can also have a pin, which will create new "button" on specified pin.
101
+ # To make it active-low - set "inverted" configuration option to "true".
102
+ - id : btn2
103
+ pin :
104
+ port : 0
105
+ pin : 18
106
+ inverted : true
107
+
88
108
# I2C is optional, only to provide different pins for i2c instance(s)
89
109
i2c :
90
110
# ID of instance is the same as defined in the SoC definition.
@@ -104,9 +124,10 @@ board:
104
124
leds :
105
125
- id : led_green
106
126
# The pin definition is optional, if led is already present in board definition.
107
- port : 0
108
- pin : 6
109
- inverted : true
127
+ pin :
128
+ port : 0
129
+ pin : 6
130
+ inverted : true
110
131
111
132
sensors :
112
133
# - type: bme680
0 commit comments