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
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ An Arduino library to synchronize with the global CheerLights color by fetching
6
6
7
7
- Fetch the latest CheerLights color name.
8
8
- Retrieve RGB values for the current color.
9
+
- Retrieve HSV values for the current color.
9
10
- Easy integration with LED strips like NeoPixels.
10
11
11
12
## IDE Installation
@@ -28,6 +29,7 @@ Include the library in your sketch and initialize it with your WiFi credentials.
28
29
-`currentColorName()`: The current CheerLights color name (e.g. "red"). Returns a pointer to a constant char array.
29
30
-`currentColorHex()`: The current CheerLights color as a hex value (e.g. 0xFF0000). Returns a uint32_t.
30
31
-`currentRed()`, `currentGreen()`, `currentBlue()`: The RGB values for the current CheerLights color (e.g. 255, 0, 0). Returns a uint8_t.
32
+
-`currentHue()`, `currentSaturation()`, `currentValue()`: The HSV values for the current CheerLights color (e.g. 0, 255, 255). Returns a uint16_t for hue and uint8_t for saturation and value.
31
33
-`hasColorChanged()`: Returns a boolean indicating whether the current CheerLights color has changed since the last call to this method.
0 commit comments