@@ -39,7 +39,7 @@ class RGBLED : public I2CDevice {
39
39
* @param brightness The brightness level of the indicator (0-255).
40
40
* @param persist If true, the change will be saved to flash memory.
41
41
* When persist is True, the brightness will also be persisted.
42
- *
42
+ * @return True if the mode was set successfully, false otherwise.
43
43
*/
44
44
bool enableIndoorAirQualityStatus (uint8_t brightness = 255 , bool persist = false );
45
45
@@ -53,6 +53,7 @@ class RGBLED : public I2CDevice {
53
53
* @param b The blue value (0-255).
54
54
* @param persist If true, the change will be saved to flash memory.
55
55
* When persist is True, the brightness will also be persisted.
56
+ * @return True if the color was set successfully, false otherwise.
56
57
*/
57
58
bool setColor (uint8_t r, uint8_t g, uint8_t b, bool persist = false );
58
59
@@ -64,6 +65,7 @@ class RGBLED : public I2CDevice {
64
65
* @param brightness The brightness value (0-255).
65
66
* @param persist If true, the change will be saved to flash memory.
66
67
* When persist is True, the brightness will also be persisted.
68
+ * @return True if the color was set successfully, false otherwise.
67
69
*/
68
70
bool setColor (uint8_t r, uint8_t g, uint8_t b, uint8_t brightness, bool persist = false ); ;
69
71
@@ -74,6 +76,7 @@ class RGBLED : public I2CDevice {
74
76
* @param color The RGB color to set.
75
77
* @param persist If true, the change will be saved to flash memory.
76
78
* When persist is True, the brightness will also be persisted.
79
+ * @return True if the color was set successfully, false otherwise.
77
80
*/
78
81
bool setColor (Color color, bool persist = false );
79
82
@@ -83,6 +86,7 @@ class RGBLED : public I2CDevice {
83
86
* @param brightness The desired brightness level (0-255).
84
87
* @param persist If true, the change will be saved to flash memory.
85
88
* When persist is True, the brightness will also be persisted.
89
+ * @return True if the color was set successfully, false otherwise.
86
90
*/
87
91
bool setColor (Color color, uint8_t brightness, bool persist = false );
88
92
@@ -105,6 +109,7 @@ class RGBLED : public I2CDevice {
105
109
* This function allows you to adjust the brightness of the RGB LED.
106
110
* @param brightness The brightness level to set (0-255).
107
111
* @param persist If true, the change will be saved to flash memory.
112
+ * @return True if the brightness was set successfully, false otherwise.
108
113
*/
109
114
bool setBrightness (uint8_t brightness, bool persist = false );
110
115
};
0 commit comments