FastLED NeoPixel  1e90134
New Functions

These are new functions available in FastLED_NeoPixel that are not present in the original Adafruit_NeoPixel class. More...

Functions

CRGBFastLED_NeoPixel_Variant::getLeds () const
 
CLEDControllerFastLED_NeoPixel_Variant::getController () const
 
static uint32_t FastLED_NeoPixel_Variant::Color (const CRGB &c)
 
void FastLED_NeoPixel_Variant::setBlendWhite (bool blend)
 

Detailed Description

These are new functions available in FastLED_NeoPixel that are not present in the original Adafruit_NeoPixel class.

Function Documentation

◆ Color()

static uint32_t FastLED_NeoPixel_Variant::Color ( const CRGB c)
inlinestatic

Overloaded version of the Color(uint8_t, uint8_t, uint8_t) function that takes a CRGB struct as an argument and returns a packed uint32_t containing the color data.

Parameters
cthe CRGB color to pack
Returns
uint32_t packed 24-bit version of the color data in RGB order, with blue as LSB
See also
Adafruit_NeoPixel::Color(uint8_t, uint8_t, uint8_t)

◆ getController()

CLEDController * FastLED_NeoPixel_Variant::getController ( ) const
inline

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
blendboolean option for the state of the blend feature. Set to 'true' to enable white channel blending.