Skip to content

Commit 17d8823

Browse files
committed
RGB LED section updated with minor patch
1 parent cdeea1c commit 17d8823

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/hardware/03.nano/boards/nano-matter/tutorials/getting-started-matter-display/getting-started-matter-display.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1000,19 +1000,17 @@ EPD.setPenSolid(false); // print wire frame forms
10001000

10011001
The Nano Matter Display features an addressable WS2813C RGB LED that can be easily used for visual status feedback.
10021002

1003-
To control the onboard LED the `ezWS2812gpio.h` header is needed.
1004-
10051003
The LED object is configured using the `ezWS2812gpio` class as follows:
10061004

10071005
```arduino
10081006
const pins_t myBoard = boardArduinoNanoMatter; // myBoard stores the Nano Matter pinout configuration
10091007
ezWS2812gpio myRGB(1, myBoard.ledData); // (<LED_quantity>, <data_pin>)
10101008
```
10111009

1012-
To control the LED color use the `set_pixel` function as follows:
1010+
To control the LED color use the `set_all` function as follows:
10131011

10141012
```arduino
1015-
myRGB.set_pixel(<R>, <G>, <B>); // pass the RGB color code in the (0 - 255) range
1013+
myRGB.set_all(<R>, <G>, <B>); // pass the RGB color code in the (0 - 255) range
10161014
```
10171015

10181016
![LED demo](assets/led-demo.jpg)

0 commit comments

Comments
 (0)