drivers: led: lp5569: implement write_channels api
The lp5569 has multiple pwm outputs, and thus implementing the write_channels api to set multiple values in a single call makes sense. Implement the write_channels function with a basic range check on the channel range. Since the lp5569 supports auto-increment, all of the channels can be written in one i2c transfer, starting from the pwm register of the start_channel. Signed-off-by: Emil Dahl Juhl <emdj@bang-olufsen.dk>
This commit is contained in:
parent
45744b436f
commit
d6ac9e8424
2 changed files with 19 additions and 0 deletions
|
@ -141,6 +141,7 @@ Drivers and Sensors
|
|||
|
||||
* Added a new set of devicetree based LED APIs, see :c:struct:`led_dt_spec`.
|
||||
* lp5569: added use of auto-increment functionality.
|
||||
* lp5569: implemented ``write_channels`` api.
|
||||
|
||||
* LED Strip
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue