-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: led_strip: Add support for white channels in API
This commit implements support for RGBW LED strips. struct led_rgb currently supports a scratch uint8 for alignment/size reasons. This same space can also fit a white channel as used by some LEDs like the SK6812. To accomplish this a new config, CONFIG_LED_STRIP_WHITE_CHANNEL is added which replaces the .scratch parameter with a .w parameter that API users can set. The existing CONFIG_LED_STRIP_RGB_SCRATCH option is kept and mutually exclusive with this new parameter to distinguish LED strips like the APA102 that need the alignment, but don't support a white channel in hardware. Signed-off-by: J M <[email protected]>
- Loading branch information
1 parent
d14519c
commit 49dde20
Showing
6 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters