27#ifndef FASTLED_NEOPIXEL_H
28#define FASTLED_NEOPIXEL_H
103 void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b);
106 void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b, uint8_t w);
112 void fill(uint32_t c = 0, uint16_t first = 0, uint16_t count = 0);
305 CRGB packedToColor(uint32_t c)
const;
308 const uint16_t maxLEDs;
312 uint8_t brightness = 255;
314 bool blendWhite =
false;
351 neoOrder == ((uint32_t)
RGB) ?
RGB :
352 neoOrder == ((uint32_t)
RBG) ?
RBG :
353 neoOrder == ((uint32_t)
GRB) ?
GRB :
354 neoOrder == ((uint32_t)
GBR) ?
GBR :
355 neoOrder == ((uint32_t)
BRG) ?
BRG :
356 neoOrder == ((uint32_t)
BGR) ?
BGR :
412template<u
int16_t NumLeds, u
int8_t DataPin, u
int32_t RgbOrder = GRB>
417 memset(ledData, 0,
sizeof(ledData));
429 uint8_t
getPin()
const {
return DataPin; };
432 CRGB ledData[NumLeds];
constexpr EOrder NeoToEOrder(uint32_t neoOrder)
Definition FastLED_NeoPixel.h:348
static uint32_t gamma32(uint32_t x)
static uint32_t ColorHSV(uint16_t hue, uint8_t sat=255, uint8_t val=255)
static uint8_t gamma8(uint8_t x)
static uint32_t Color(uint8_t r, uint8_t g, uint8_t b)
static uint8_t sine8(uint8_t x)
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
FastLED implementation of the Adafruit_NeoPixel class. Base class for all strips.
Definition FastLED_NeoPixel.h:62
void fill(uint32_t c=0, uint16_t first=0, uint16_t count=0)
Definition FastLED_NeoPixel.cpp:71
static uint8_t sine8(uint8_t x)
Definition FastLED_NeoPixel.h:152
static uint32_t gamma32(uint32_t x)
Definition FastLED_NeoPixel.h:168
static uint32_t Color(uint8_t r, uint8_t g, uint8_t b)
Definition FastLED_NeoPixel.h:159
void begin(CLEDController &ctrl)
Definition FastLED_NeoPixel.cpp:46
bool canShow()
Definition FastLED_NeoPixel.cpp:91
uint32_t getPixelColor(uint16_t n) const
Definition FastLED_NeoPixel.cpp:98
void clear()
Definition FastLED_NeoPixel.cpp:81
uint8_t * getPixels() const
Definition FastLED_NeoPixel.h:139
uint8_t getBrightness() const
Definition FastLED_NeoPixel.h:142
static uint32_t ColorHSV(uint16_t hue, uint8_t sat=255, uint8_t val=255)
Definition FastLED_NeoPixel.h:165
static uint8_t gamma8(uint8_t x)
Definition FastLED_NeoPixel.h:155
uint16_t numPixels() const
Definition FastLED_NeoPixel.h:145
void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b)
Definition FastLED_NeoPixel.cpp:57
static uint32_t Color(uint8_t r, uint8_t g, uint8_t b, uint8_t w)
Definition FastLED_NeoPixel.h:162
void setBrightness(uint8_t bright)
Definition FastLED_NeoPixel.h:116
void show()
Definition FastLED_NeoPixel.cpp:50
void updateLength(uint16_t n)
Definition FastLED_NeoPixel.cpp:85
FastLED implementation of the Adafruit_NeoPixel class for WS2812B strips, with data.
Definition FastLED_NeoPixel.h:413
void begin()
Definition FastLED_NeoPixel.h:424
uint8_t getPin() const
Definition FastLED_NeoPixel.h:429
CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2)
void setBlendWhite(bool blend)
Definition FastLED_NeoPixel.h:230
static uint32_t Color(const CRGB &c)
Definition FastLED_NeoPixel.h:213
CLEDController * getController() const
Definition FastLED_NeoPixel.h:202
CRGB * getLeds() const
Definition FastLED_NeoPixel.h:188
void updateType(neoPixelType T)