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: docs/api.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
`class `[`OutdoorAirQualitySensor`](#class_outdoor_air_quality_sensor) | Class representing an outdoor air quality sensor (ZMOD4510)
10
10
`class `[`RGBLED`](#class_r_g_b_l_e_d) | Represents the on-board RGB LED that can be controlled using I2C communication.
11
11
`class `[`TemperatureHumiditySensor`](#class_temperature_humidity_sensor) | Represents a temperature and humidity sensor.
12
-
`struct `[`Color`](#struct_color) | Represents a color with red, green, and blue components.
12
+
`struct `[`LEDColor`](#struct_l_e_d_color) | Represents a color with red, green, and blue components.
13
13
`struct `[`RegisterInfo`](#struct_register_info) | Structure representing information about a register.
14
14
15
15
# class `I2CDevice` <aid="class_i2_c_device"class="anchor"></a>
@@ -1030,8 +1030,8 @@ The [RGBLED](#class_r_g_b_l_e_d) class provides methods to control the color and
1030
1030
|[`RGBLED`](#class_r_g_b_l_e_d_1a350a112613fac1242743e4b1de07a057)| Initializes an instance of the [RGBLED](#class_r_g_b_l_e_d) class with the specified device address. |
1031
1031
|[`enableIndoorAirQualityStatus`](#class_r_g_b_l_e_d_1aa6fbd29854537566dee74d73875615c6)| Enables the indoor air quality status indicator on the RGB LED. When enabled, the RGB LED will change color based on the air quality (red = bad, green = good) |
1032
1032
|[`setColor`](#class_r_g_b_l_e_d_1a04058a97af30f3eb3836f7dd1eeb1c01)| Sets the RGB values of the LED. |
1033
-
|[`setColor`](#class_r_g_b_l_e_d_1ac5fff451e2e16b7498917fbe02134adb)| Sets the RGB color of the LED using a [Color](#struct_color) object. The [Color](#struct_color) object contains the red, green, and blue values that can be changed individually. Note: A value of 0, 0, 0 will set the color based on the IAQ value from the Indoor Air Quality sensor. |
1034
-
|[`color`](#class_r_g_b_l_e_d_1a6ce467b464540233311718ac5055e7bc)| Gets the current RGB color of the LED. |
1033
+
|[`setColor`](#class_r_g_b_l_e_d_1aac7fba93bc4437940f6a525886135983)| Sets the RGB color of the LED using a [LEDColor](#struct_l_e_d_color) object. The [LEDColor](#struct_l_e_d_color) object contains the red, green, and blue values that can be changed individually. Note: A value of 0, 0, 0 will set the color based on the IAQ value from the Indoor Air Quality sensor. |
1034
+
|[`color`](#class_r_g_b_l_e_d_1a0b5c265b6940d324faf112103e60e5ff)| Gets the current RGB color of the LED. |
1035
1035
|[`brightness`](#class_r_g_b_l_e_d_1ae0d4a3a49a797220fe19ee70e8f3ec67)| Get the brightness of the RGB LED (0-255) |
1036
1036
|[`setBrightness`](#class_r_g_b_l_e_d_1a72dd5b87e665205ca86de73a193ce42f)| Sets the brightness of the RGB LED. This function allows you to adjust the brightness of the RGB LED. |
1037
1037
@@ -1101,13 +1101,13 @@ This function sets the red, green, and blue values of the LED using individual v
1101
1101
True if the color was set successfully, false otherwise.
Sets the RGB color of the LED using a [Color](#struct_color) object. The [Color](#struct_color) object contains the red, green, and blue values that can be changed individually. Note: A value of 0, 0, 0 will set the color based on the IAQ value from the Indoor Air Quality sensor.
1110
+
Sets the RGB color of the LED using a [LEDColor](#struct_l_e_d_color) object. The [LEDColor](#struct_l_e_d_color) object contains the red, green, and blue values that can be changed individually. Note: A value of 0, 0, 0 will set the color based on the IAQ value from the Indoor Air Quality sensor.
1111
1111
1112
1112
#### Parameters
1113
1113
* `color` The RGB color to set.
@@ -1118,16 +1118,16 @@ Sets the RGB color of the LED using a [Color](#struct_color) object. The [Color]
1118
1118
True if the color was set successfully, false otherwise.
0 commit comments