@@ -39,7 +39,7 @@ class RGBLED : public I2CDevice {
3939 * @param brightness The brightness level of the indicator (0-255).
4040 * @param persist If true, the change will be saved to flash memory.
4141 * When persist is True, the brightness will also be persisted.
42- *
42+ * @return True if the mode was set successfully, false otherwise.
4343 */
4444 bool enableIndoorAirQualityStatus (uint8_t brightness = 255 , bool persist = false );
4545
@@ -53,6 +53,7 @@ class RGBLED : public I2CDevice {
5353 * @param b The blue value (0-255).
5454 * @param persist If true, the change will be saved to flash memory.
5555 * When persist is True, the brightness will also be persisted.
56+ * @return True if the color was set successfully, false otherwise.
5657 */
5758 bool setColor (uint8_t r, uint8_t g, uint8_t b, bool persist = false );
5859
@@ -64,6 +65,7 @@ class RGBLED : public I2CDevice {
6465 * @param brightness The brightness value (0-255).
6566 * @param persist If true, the change will be saved to flash memory.
6667 * When persist is True, the brightness will also be persisted.
68+ * @return True if the color was set successfully, false otherwise.
6769 */
6870 bool setColor (uint8_t r, uint8_t g, uint8_t b, uint8_t brightness, bool persist = false ); ;
6971
@@ -74,6 +76,7 @@ class RGBLED : public I2CDevice {
7476 * @param color The RGB color to set.
7577 * @param persist If true, the change will be saved to flash memory.
7678 * When persist is True, the brightness will also be persisted.
79+ * @return True if the color was set successfully, false otherwise.
7780 */
7881 bool setColor (Color color, bool persist = false );
7982
@@ -83,6 +86,7 @@ class RGBLED : public I2CDevice {
8386 * @param brightness The desired brightness level (0-255).
8487 * @param persist If true, the change will be saved to flash memory.
8588 * When persist is True, the brightness will also be persisted.
89+ * @return True if the color was set successfully, false otherwise.
8690 */
8791 bool setColor (Color color, uint8_t brightness, bool persist = false );
8892
@@ -105,6 +109,7 @@ class RGBLED : public I2CDevice {
105109 * This function allows you to adjust the brightness of the RGB LED.
106110 * @param brightness The brightness level to set (0-255).
107111 * @param persist If true, the change will be saved to flash memory.
112+ * @return True if the brightness was set successfully, false otherwise.
108113 */
109114 bool setBrightness (uint8_t brightness, bool persist = false );
110115};
0 commit comments