From b453c51458a8a7163a4e5909fa22f15d9750fc37 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 8 Jan 2023 11:32:35 -0600 Subject: [PATCH] Update Pixels.md --- docs/Pixels.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Pixels.md b/docs/Pixels.md index 77367ae..38a8df3 100644 --- a/docs/Pixels.md +++ b/docs/Pixels.md @@ -27,7 +27,7 @@ The two main methods to set pixel colors are: * individually sets the color of each pixel in a multi-pixel device to the color values specified in the **Color** array *\*color*, of *nPixels* size, where the first pixel of the device is set to the value in *color\[0\]*, the second pixel is set to the value in *color\[1\]* ... and the last pixel is set to the value in *color\[nPixels-1\]*. Similar to above, it is not a problem if the value specified for *nPixels* does not match the total number of actual RGB (or RGBW) pixels in your device -In both of the methods above, colors are stored in a 32-bit **Color** object configured to hold four 8-bit RGBW values. **Color** objects can be instantiated as single variables (e.g. `Pixel::Color myColor;`) or as arrays (e.g. `Pixel::Color myColors\[8\];`). Note that the **Color** object used by the **Pixel** class is scoped to the **Pixel** class itself, so you need to use the fully-qualified class name "Pixel::Color". Once a **Color** object is created, the color it stores can be set using one of the two following methods: +In both of the methods above, colors are stored in a 32-bit **Color** object configured to hold four 8-bit RGBW values. **Color** objects can be instantiated as single variables (e.g. `Pixel::Color myColor;`) or as arrays (e.g. `Pixel::Color myColors[8];`). Note that the **Color** object used by the **Pixel** class is scoped to the **Pixel** class itself, so you need to use the fully-qualified class name "Pixel::Color". Once a **Color** object is created, the color it stores can be set using one of the two following methods: * `Color RGB(uint8_t r, uint8_t g, uint8_t b, uint8_t w=0)`