|
| CLEDController () |
| create an led controller object, add it to the chain of controllers
|
|
virtual void | init ()=0 |
| initialize the LED controller
|
|
virtual void | clearLeds (int nLeds) |
| clear out/zero out the given number of leds.
|
|
void | show (const struct CRGB *data, int nLeds, uint8_t brightness) |
| show function w/integer brightness, will scale for color correction and temperature
|
|
void | showColor (const struct CRGB &data, int nLeds, uint8_t brightness) |
| show function w/integer brightness, will scale for color correction and temperature
|
|
void | showLeds (uint8_t brightness=255) |
| show function using the "attached to this controller" led data
|
|
void | showColor (const struct CRGB &data, uint8_t brightness=255) |
| show the given color on the led strip
|
|
CLEDController * | next () |
| get the next controller in the chain after this one. will return NULL at the end of the chain
|
|
CLEDController & | setLeds (CRGB *data, int nLeds) |
| set the default array of leds to be used by this controller
|
|
void | clearLedData () |
| zero out the led data managed by this controller
|
|
virtual int | size () |
| How many leds does this controller manage?
|
|
CRGB * | leds () |
| Pointer to the CRGB array for this controller.
|
|
CRGB & | operator[] (int x) |
| Reference to the n'th item in the controller.
|
|
CLEDController & | setDither (uint8_t ditherMode=BINARY_DITHER) |
| set the dithering mode for this controller to use
|
|
uint8_t | getDither () |
| get the dithering option currently set for this controller
|
|
CLEDController & | setCorrection (CRGB correction) |
| the the color corrction to use for this controller, expressed as an rgb object
|
|
CLEDController & | setCorrection (LEDColorCorrection correction) |
| set the color correction to use for this controller
|
|
CRGB | getCorrection () |
| get the correction value used by this controller
|
|
CLEDController & | setTemperature (CRGB temperature) |
| set the color temperature, aka white point, for this controller
|
|
CLEDController & | setTemperature (ColorTemperature temperature) |
| set the color temperature, aka white point, for this controller
|
|
CRGB | getTemperature () |
| get the color temperature, aka whipe point, for this controller
|
|
CRGB | getAdjustment (uint8_t scale) |
| Get the combined brightness/color adjustment for this controller.
|
|
virtual uint16_t | getMaxRefreshRate () const |
|
Base definition for an LED controller.
Pretty much the methods that every LED controller object will make available. Note that the showARGB method is not impelemented for all controllers yet. Note also the methods for eventual checking of background writing of data (I'm looking at you, teensy 3.0 DMA controller!). If you want to pass LED controllers around to methods, make them references to this type, keeps your code saner. However, most people won't be seeing/using these objects directly at all
Definition at line 38 of file controller.h.