|
3 | 3 | /**
|
4 | 4 | * @brief Represents a color with red, green, and blue components.
|
5 | 5 | */
|
6 |
| -struct Color { |
| 6 | +struct LEDColor { |
7 | 7 | uint8_t red; /**< The red component of the color. */
|
8 | 8 | uint8_t green; /**< The green component of the color. */
|
9 | 9 | uint8_t blue; /**< The blue component of the color. */
|
@@ -57,21 +57,21 @@ class RGBLED : public I2CDevice {
|
57 | 57 | bool setColor(uint8_t r, uint8_t g, uint8_t b, bool persist = false);
|
58 | 58 |
|
59 | 59 | /**
|
60 |
| - * @brief Sets the RGB color of the LED using a Color object. |
61 |
| - * The Color object contains the red, green, and blue values that can be changed individually. |
| 60 | + * @brief Sets the RGB color of the LED using a LEDColor object. |
| 61 | + * The LEDColor object contains the red, green, and blue values that can be changed individually. |
62 | 62 | * Note: A value of 0, 0, 0 will set the color based on the IAQ value from the Indoor Air Quality sensor.
|
63 | 63 | * @param color The RGB color to set.
|
64 | 64 | * @param persist If true, the change will be saved to flash memory.
|
65 | 65 | * @return True if the color was set successfully, false otherwise.
|
66 | 66 | */
|
67 |
| - bool setColor(Color color, bool persist = false); |
| 67 | + bool setColor(LEDColor color, bool persist = false); |
68 | 68 |
|
69 | 69 | /**
|
70 | 70 | * @brief Gets the current RGB color of the LED.
|
71 | 71 | *
|
72 |
| - * @return The current RGB color as a Color object. |
| 72 | + * @return The current RGB color as a LEDColor object. |
73 | 73 | */
|
74 |
| - Color color(); |
| 74 | + LEDColor color(); |
75 | 75 |
|
76 | 76 | /**
|
77 | 77 | * @brief Get the brightness of the RGB LED (0-255)
|
|
0 commit comments