Skip to content

Commit 8c4dc77

Browse files
committed
v2 ready
1 parent b9c1e6f commit 8c4dc77

File tree

2 files changed

+8
-0
lines changed
  • content/hardware/03.nano/boards/nano-matter/tutorials

2 files changed

+8
-0
lines changed

content/hardware/03.nano/boards/nano-matter/tutorials/matter-rgb-light/content.md

+4
Original file line numberDiff line numberDiff 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

233237
Once you uploaded the example code to the Nano Matter, open the Serial Monitor and reset the board.
234238

content/hardware/03.nano/boards/nano-matter/tutorials/matter-temp-sensor/content.md

+4
Original file line numberDiff line numberDiff 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+
185189
Once 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)

0 commit comments

Comments
 (0)