These are new functions available in FastLED_NeoPixel that are not present in the original Adafruit_NeoPixel class.
More...
These are new functions available in FastLED_NeoPixel that are not present in the original Adafruit_NeoPixel class.
◆ Color()
static uint32_t FastLED_NeoPixel_Variant::Color |
( |
const CRGB & |
c | ) |
|
|
inlinestatic |
◆ getController()
Returns a pointer to the internal CLEDController object used for sending the LED data to the strip.
This can be used for setting color correction or sending other LED data out on the LED pin used by the class.
- Warning
- This will return nullptr until the
begin()
function is called with the controller instance.
- Returns
- CLEDController pointer to the controller instance
◆ getLeds()
CRGB * FastLED_NeoPixel_Variant::getLeds |
( |
| ) |
const |
|
inline |
Returns a pointer to the internal CRGB array containing the LED color data.
This can be used for native FastLED animations and functions.
- Returns
- CRGB pointer to color data
◆ setBlendWhite()
void FastLED_NeoPixel_Variant::setBlendWhite |
( |
bool |
blend | ) |
|
|
inline |
Sets the 'blend white' feature of the class. If this is enabled, white channel (RGBW) values passed to the setPixelColor function will be blended into the RGB channels.
This allows for simple animations written for RGBW strips to run on RGB strips without modification. Because this blends the white channel data into the RGB channels, more complicated animations that read the data back from the strip will not work properly.
This feature is disabled by default.
- Parameters
-
blend | boolean option for the state of the blend feature. Set to 'true' to enable white channel blending. |