Removes legacy RMT, adds brightness + RGBW support #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for SK6812 RGBW LED strips to the AtomVM NeoPixel library, in addition to the existing WS2812 RGB LED support. The documentation has been extensively updated to describe the new features, color spaces, and API options for both RGB and RGBW strips. The native C code has been refactored to support the new LED type and to simplify the initialization and error handling logic, making the library compatible with ESP-IDF 5.x.
Feature additions and documentation updates:
README.mdandmarkdown/neopixel.mdto reflect these changes and document the new features and usage examples. [1] [2] [3] [4] [5] [6]set_brightness/2andget_brightness/1, with details on how brightness scaling works efficiently.API and codebase changes:
nifs/atomvm_neopixel.cto support the new RGBW LED type, including handling for theled_typeargument and removal of legacy RMT channel logic. Initialization now uses the new configuration structure compatible with ESP-IDF 5.x. [1] [2] [3] [4]