zephyr/drivers/led
Martí Bolívar 5cb95c4ce6 drivers: led_gpio: minor tweaks
Two minor tweaks and a semantics change:

- fix a whitespace nit
- use gpio_pin_configure_dt()
- turn the LED on in case the percentage is nonzero

The last change patterns this driver after behavior in the Android
lights HAL, which recommends analogous behavior when the user requests
a color change in a non-RGB LED:

    Do your best here. [...] If you can only do on or off, 0 is off,
    anything else is on.

    https://source.android.com/reference/hal/structlight__state__t

I think this behavior makes more sense.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-05-04 16:01:30 +02:00
..
CMakeLists.txt drivers: led: Add LED GPIO driver 2021-04-27 16:21:48 +02:00
ht16k33.c drivers: led: remove usage of device_pm_control_nop 2021-04-28 11:25:42 -04:00
Kconfig drivers: led: Add LED GPIO driver 2021-04-27 16:21:48 +02:00
Kconfig.gpio drivers: led: Add LED GPIO driver 2021-04-27 16:21:48 +02:00
Kconfig.ht16k33 dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
Kconfig.lp503x drivers: led: add driver for TI LP503x controllers 2020-08-28 15:04:35 +02:00
Kconfig.lp3943
Kconfig.lp5562
Kconfig.pca9633
Kconfig.pwm drivers: led: add driver for PWM LEDs 2020-10-28 10:44:46 -05:00
led_context.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
led_gpio.c drivers: led_gpio: minor tweaks 2021-05-04 16:01:30 +02:00
led_handlers.c drivers: led: fix function name of led_set_color() 2021-04-09 10:44:26 -05:00
led_pwm.c drivers: led_pwm: Handle power state changes 2021-04-13 16:21:07 -04:00
led_shell.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lp503x.c drivers: led: remove usage of device_pm_control_nop 2021-04-28 11:25:42 -04:00
lp3943.c drivers: led: remove usage of device_pm_control_nop 2021-04-28 11:25:42 -04:00
lp5562.c drivers: led: remove usage of device_pm_control_nop 2021-04-28 11:25:42 -04:00
pca9633.c drivers: led: remove usage of device_pm_control_nop 2021-04-28 11:25:42 -04:00