#include <device.h>
#include <drivers/gpio.h>
Go to the source code of this file.
◆ sx1509b_led_intensity_pin_configure()
int sx1509b_led_intensity_pin_configure |
( |
const struct device * |
dev, |
|
|
gpio_pin_t |
pin |
|
) |
| |
Configure a pin for LED intensity.
Configure a pin to be controlled by SX1509B LED driver using the LED intensity functionality. To get back normal GPIO funcionality, configure the pin using the standard GPIO API.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
pin | Pin number. |
- Return values
-
0 | If successful. |
-EWOULDBLOCK | if function is called from an ISR. |
-ERANGE | if pin number is out of range. |
-EIO | if I2C fails. |
◆ sx1509b_led_intensity_pin_set()
Set LED intensity of selected pin.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
pin | Pin number. |
intensity_val | Intensity value. |
- Return values
-
0 | If successful. |
-EIO | if I2C fails. |