led.h: clarify brightness API for on/off LEDs
This clarification makes Zephyr's LED brightness API match the behavior that both the Android lights HAL and Linux's userspace LED drivers expose. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
5cb95c4ce6
commit
e869582338
1 changed files with 4 additions and 0 deletions
|
@ -179,6 +179,10 @@ static inline int z_impl_led_get_info(const struct device *dev, uint32_t led,
|
|||
* This optional routine sets the brightness of a LED to the given value.
|
||||
* Calling this function after led_blink() won't affect blinking.
|
||||
*
|
||||
* LEDs which can only be turned on or off may provide this function.
|
||||
* These should simply turn the LED on if @p value is nonzero, and off
|
||||
* if @p value is zero.
|
||||
*
|
||||
* @param dev LED device
|
||||
* @param led LED number
|
||||
* @param value Brightness value to set in percent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue