template<int SIZE>
class CRGBArray< SIZE >
A version of CPixelView<CRGB> with an included array of CRGB LEDs.
- Template Parameters
-
SIZE | the number of LEDs to include in the array |
- Examples
- RGBSetDemo.ino, and TwinkleFox.ino.
Definition at line 446 of file pixelset.h.
|
CPixelView & | operator= (const PIXEL_TYPE &color) |
| Assign the passed in color to all elements in this set.
|
|
CPixelView & | operator= (const CPixelView &rhs) |
| Copy the contents of the passed-in set to our set.
|
|
| CPixelView (const CPixelView &other) |
| PixelSet copy constructor.
|
|
| CPixelView (CRGB *_leds, int _len) |
| PixelSet constructor for a pixel set starting at the given PIXEL_TYPE* and going for _len leds.
|
|
| CPixelView (CRGB *_leds, int _start, int _end) |
| PixelSet constructor for the given set of LEDs, with start and end boundaries.
|
|
int | size () |
| Get the size of this set.
|
|
bool | reversed () |
| Whether or not this set goes backwards.
|
|
bool | operator== (const CPixelView &rhs) const |
| Do these sets point to the same thing? Note that this is different from the contents of the set being the same.
|
|
bool | operator!= (const CPixelView &rhs) const |
| Do these sets point to different things? Note that this is different from the contents of the set being the same.
|
|
CRGB & | operator[] (int x) const |
| Access a single element in this set, just like an array operator.
|
|
CPixelView | operator() (int start, int end) |
| Access an inclusive subset of the LEDs in this set.
|
|
CPixelView | operator- () |
| Return the reverse ordering of this set.
|
|
| operator CRGB * () const |
| Return a pointer to the first element in this set.
|
|
CPixelView & | operator= (const CRGB &color) |
| Assign the passed in color to all elements in this set.
|
|
CPixelView & | operator= (const CPixelView &rhs) |
| Copy the contents of the passed-in set to our set.
|
|
void | dump () const |
| Print debug data to serial, disabled for release.
|
|
| operator bool () |
| Returns whether or not any LEDs in this set are non-zero.
|
|
CPixelView & | addToRGB (uint8_t inc) |
| Add the passed in value to all channels for all of the pixels in this set.
|
|
CPixelView & | operator+= (CPixelView &rhs) |
| Add every pixel in the other set to this set.
|
|
CPixelView & | subFromRGB (uint8_t inc) |
| Subtract the passed in value from all channels for all of the pixels in this set.
|
|
CPixelView & | operator-= (CPixelView &rhs) |
| Subtract every pixel in the other set from this set.
|
|
CPixelView & | operator++ () |
| Increment every pixel value in this set.
|
|
CPixelView & | operator++ (int DUMMY_ARG) |
| Increment every pixel value in this set.
|
|
CPixelView & | operator-- () |
| Decrement every pixel value in this set.
|
|
CPixelView & | operator-- (int DUMMY_ARG) |
| Decrement every pixel value in this set.
|
|
CPixelView & | operator/= (uint8_t d) |
| Divide every LED by the given value.
|
|
CPixelView & | operator>>= (uint8_t d) |
| Shift every LED in this set right by the given number of bits.
|
|
CPixelView & | operator*= (uint8_t d) |
| Multiply every LED in this set by the given value.
|
|
CPixelView & | nscale8_video (uint8_t scaledown) |
| Scale every LED by the given scale.
|
|
CPixelView & | operator%= (uint8_t scaledown) |
| Scale down every LED by the given scale.
|
|
CPixelView & | fadeLightBy (uint8_t fadefactor) |
| Fade every LED down by the given scale.
|
|
CPixelView & | nscale8 (uint8_t scaledown) |
| Scale every LED by the given scale.
|
|
CPixelView & | nscale8 (CRGB &scaledown) |
| Scale every LED by the given scale.
|
|
CPixelView & | nscale8 (CPixelView &rhs) |
| Scale every LED in this set by every led in the other set.
|
|
CPixelView & | fadeToBlackBy (uint8_t fade) |
| Fade every LED down by the given scale.
|
|
CPixelView & | operator|= (const CRGB &rhs) |
| Apply the PIXEL_TYPE |= operator to every pixel in this set with the given PIXEL_TYPE value.
|
|
CPixelView & | operator|= (const CPixelView &rhs) |
| Apply the PIXEL_TYPE |= operator to every pixel in this set with every pixel in the passed in set.
|
|
CPixelView & | operator|= (uint8_t d) |
| Apply the PIXEL_TYPE |= operator to every pixel in this set.
|
|
CPixelView & | operator&= (const CRGB &rhs) |
| Apply the PIXEL_TYPE &= operator to every pixel in this set with the given PIXEL_TYPE value.
|
|
CPixelView & | operator&= (const CPixelView &rhs) |
| Apply the PIXEL_TYPE &= operator to every pixel in this set with every pixel in the passed in set.
|
|
CPixelView & | operator&= (uint8_t d) |
| Apply the PIXEL_TYPE &= operator to every pixel in this set with the passed in value.
|
|
CPixelView & | fill_solid (const CRGB &color) |
| Fill all of the LEDs with a solid color.
|
|
CPixelView & | fill_solid (const CHSV &color) |
| Fill all of the LEDs with a solid color.
|
|
CPixelView & | fill_rainbow (uint8_t initialhue, uint8_t deltahue=5) |
| Fill all of the LEDs with a rainbow of colors.
|
|
CPixelView & | fill_gradient (const CHSV &startcolor, const CHSV &endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES) |
| Fill all of the LEDs with a smooth HSV gradient between two HSV colors.
|
|
CPixelView & | fill_gradient (const CHSV &c1, const CHSV &c2, const CHSV &c3, TGradientDirectionCode directionCode=SHORTEST_HUES) |
| Fill all of the LEDs with a smooth HSV gradient between three HSV colors.
|
|
CPixelView & | fill_gradient (const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4, TGradientDirectionCode directionCode=SHORTEST_HUES) |
| Fill all of the LEDs with a smooth HSV gradient between four HSV colors.
|
|
CPixelView & | fill_gradient_RGB (const CRGB &startcolor, const CRGB &endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES) |
| Fill all of the LEDs with a smooth RGB gradient between two RGB colors.
|
|
CPixelView & | fill_gradient_RGB (const CRGB &c1, const CRGB &c2, const CRGB &c3) |
| Fill all of the LEDs with a smooth RGB gradient between three RGB colors.
|
|
CPixelView & | fill_gradient_RGB (const CRGB &c1, const CRGB &c2, const CRGB &c3, const CRGB &c4) |
| Fill all of the LEDs with a smooth RGB gradient between four RGB colors.
|
|
CPixelView & | nblend (const CRGB &overlay, fract8 amountOfOverlay) |
| Destructively modifies all LEDs, blending in a given fraction of an overlay color.
|
|
CPixelView & | nblend (const CPixelView &rhs, fract8 amountOfOverlay) |
| Destructively blend another set of LEDs into this one.
|
|
CPixelView & | blur1d (fract8 blur_amount) |
| One-dimensional blur filter.
|
|
CPixelView & | napplyGamma_video (float gamma) |
| Destructively applies a gamma adjustment to all LEDs.
|
|
CPixelView & | napplyGamma_video (float gammaR, float gammaG, float gammaB) |
| Destructively applies a gamma adjustment to all LEDs.
|
|
iterator | begin () |
| Makes an iterator instance for the start of the LED set.
|
|
iterator | begin () const |
| Makes an iterator instance for the start of the LED set, const qualified.
|
|
iterator | end () |
| Makes an iterator instance for the end of the LED set.
|
|
iterator | end () const |
| Makes an iterator instance for the end of the LED set, const qualified.
|
|
const_iterator | cbegin () const |
| Makes a const iterator instance for the start of the LED set, const qualified.
|
|
const_iterator | cend () const |
| Makes a const iterator instance for the end of the LED set, const qualified.
|
|