-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Basic idea:
Provide compatibility with microcontrollers covered by the Adafruit Neopixel library, but not FastLED yet.
How:
- If a platform unsupported by FastLED is detected, (i.e. RP2040) a compilation flag "ADAFRUIT_MODE" is defined.
- A warning is shown during compilation that the library is in "Compatibility Mode" and performance may slightly suffer
FastLED.his not included during compile. Instead, some manually curated FastLED module are included from a new filecompatibility_tools.h- When a user specifies a FastLED detail like a CHSV color or a CRGBPalette16, these are handled by the FastLED structs and functions borrowed verbatim for the
compatibility_tools.hfile. - Upon calling
pix.show(), the CRGB LED buffers are parsed into Neopixel's 32-bit color data usingunionfor speed. - This converted LED array is then sent out using the underlying Neopixel library
This way, any microcontroller that the Neopixel library can work with (which FastLED can't yet) can be used in Compatibility Mode with little or no extra work by the user.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request