File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
content/hardware/03.nano/boards/nano-matter/tutorials Expand file tree Collapse file tree 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() {
229229 button_pressed = true;
230230}
231231```
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.
232236
233237Once you uploaded the example code to the Nano Matter, open the Serial Monitor and reset the board.
234238
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ void decommission_handler() {
182182}
183183```
184184
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+
185189Once you uploaded the example code to the Nano Matter, open the Serial Monitor and reset the board.
186190
187191![ QR Code URL] ( assets/serial-monitor.png )
You can’t perform that action at this time.
0 commit comments