-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microbit: Add support for RGBW pixels in neopixel module.
The NeoPixel class now accepts an additional "bpp" parameter, which defaults to 3, and if set to 4 can be used to control RGBW pixels. This API follows that of micro:bit v2. Signed-off-by: Damien George <damien@micropython.org>
- Loading branch information
Showing
3 changed files
with
36 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -398,6 +398,7 @@ Q(write_readinto) | |
|
||
Q(neopixel) | ||
Q(NeoPixel) | ||
Q(bpp) | ||
Q(clear) | ||
Q(show) | ||
|
||
|
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