File tree 2 files changed +8
-0
lines changed
content/hardware/03.nano/boards/nano-matter/tutorials
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,10 @@ void handle_button_press() {
229
229
button_pressed = true;
230
230
}
231
231
```
232
+ This is a very simple code that consist of the Arduino basic sketch parts:
233
+ - In the ` setup() ` function we initialize the Matter connectivity and the RGB Matrix I2C communication.
234
+ - In the ` loop() ` function we listen to any request of controlling the lightbulb state or color and update the matrix respectively.
235
+ - There are some other functions to handle button press or RGB matrix color setup.
232
236
233
237
Once you uploaded the example code to the Nano Matter, open the Serial Monitor and reset the board.
234
238
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ void decommission_handler() {
182
182
}
183
183
```
184
184
185
+ This is a very simple code that consist of the Arduino basic sketch parts:
186
+ - In the ` setup() ` function we initialize the Matter connectivity, the OLED display and temperature sensor.
187
+ - In the ` loop() ` function we measure the temperature and update the device value to be monitored in the Matter network.
188
+
185
189
Once you uploaded the example code to the Nano Matter, open the Serial Monitor and reset the board.
186
190
187
191
![ QR Code URL] ( assets/serial-monitor.png )
You can’t perform that action at this time.
0 commit comments