You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Seeed_RGB_LED_Matrix](https://github.com/Seeed-Studio/Seeed_RGB_LED_Matrix) library to control the RGB LED matrix. You can install it as .ZIP using the Arduino IDE.
45
-
-[DHT](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) library. Download from this [branch](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) so it support the Nano Matter.
46
45
47
46
### Board Core and Libraries
48
47
@@ -60,7 +59,7 @@ Now navigate to **Tools > Board > Boards Manager** or click the Boards Manager i
60
59
61
60
Use the following connection diagram for the project:
62
61
63
-

62
+

64
63
65
64
### Programming
66
65
@@ -71,7 +70,164 @@ In the Arduino IDE upper menu, navigate to **Tools > Protocol stack** and select
71
70
Copy and paste the following sketch:
72
71
73
72
```arduino
74
-
73
+
#include <Matter.h>
74
+
#include <MatterLightbulb.h>
75
+
#include "grove_two_rgb_led_matrix.h"
76
+
77
+
#define LED_R LED_BUILTIN
78
+
#define LED_G LED_BUILTIN_1
79
+
#define LED_B LED_BUILTIN_2
80
+
81
+
MatterColorLightbulb matter_color_bulb;
82
+
83
+
GroveTwoRGBLedMatrixClass matrix;
84
+
85
+
void update_led_color();
86
+
void led_off();
87
+
void handle_button_press();
88
+
volatile bool button_pressed = false;
89
+
90
+
void setup() {
91
+
Wire.begin();
92
+
Serial.begin(115200);
93
+
Matter.begin();
94
+
matter_color_bulb.begin();
95
+
matter_color_bulb.boost_saturation(51); // Boost saturation by 20 percent
Copy file name to clipboardExpand all lines: content/hardware/03.nano/boards/nano-matter/tutorials/matter-temp-sensor/content.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Thanks to the seamless compatibility of the Nano Matter with almost any Matter n
42
42
-[Arduino IDE 2.0+](https://www.arduino.cc/en/software) or [Arduino Cloud Editor](https://create.arduino.cc/editor)
43
43
-[Google Home App](https://home.google.com/get-app/)
44
44
-[U8g2](https://github.com/olikraus/u8g2) library to control the OLED display. You can install it from the Arduino IDE library manager.
45
-
-[DHT](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) library. Download from this [branch](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) so it support the Nano Matter.
45
+
-[DHT](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) library. Download from this [branch](https://github.com/mcmchris/DHT-sensor-library/tree/patch-1) so it supports the Nano Matter.
0 commit comments