template<EOrder RGB_ORDER = RGB>
class DMXSerialController< RGB_ORDER >
DMX512 based LED controller class, using the DMXSerial library.
- Template Parameters
-
RGB_ORDER | the RGB ordering for these LEDs |
- See also
- http://www.mathertel.de/Arduino/DMXSerial.aspx
-
https://github.com/mathertel/DMXSerial
-
https://en.wikipedia.org/wiki/DMX512
Definition at line 64 of file dmx.h.
|
virtual void | init () |
| Initialize the LED controller.
|
|
virtual void | showPixels (PixelController< RGB_ORDER > &pixels) |
| Send the LED data to the strip.
|
|
virtual void | showPixels (PixelController< RGB_ORDER, 1, 0xFFFFFFFF > &pixels)=0 |
| Send the LED data to the strip.
|
|
int | lanes () |
| Get the number of lanes of the Controller.
|
|
CLEDController & | setRgbw (const Rgbw &arg=RgbwDefault::value()) |
|
Rgbw | getRgbw () const |
|
| CLEDController () |
| Create an led controller object, add it to the chain of controllers.
|
|
virtual void | clearLeds (int nLeds=-1) |
| Clear out/zero out the given number of LEDs.
|
|
ColorAdjustment | getAdjustmentData (uint8_t brightness) |
|
void | showInternal (const struct CRGB *data, int nLeds, uint8_t brightness) |
|
void | showColorInternal (const struct CRGB &data, int nLeds, uint8_t brightness) |
|
void | showLedsInternal (uint8_t brightness) |
| Write the data to the LEDs managed by this controller.
|
|
void | showColorInternal (const struct CRGB &data, uint8_t brightness) |
|
CLEDController * | next () |
| Get the next controller in the linked list after this one.
|
|
CLEDController & | setLeds (CRGB *data, int nLeds) |
| Set the default array of LEDs to be used by this controller.
|
|
void | clearLedDataInternal (int nLeds=-1) |
| 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 LED managed by the controller.
|
|
CLEDController & | setDither (uint8_t ditherMode=BINARY_DITHER) |
| Set the dithering mode for this controller to use.
|
|
CLEDController & | setScreenMap (const XYMap &map) |
|
CLEDController & | setScreenMap (const ScreenMap &map) |
|
CLEDController & | setScreenMap (uint16_t width, uint16_t height) |
|
uint8_t | getDither () |
| Get the dithering option currently set for this controller.
|
|
virtual void * | beginShowLeds () |
|
virtual void | endShowLeds (void *data) |
|
CLEDController & | setCorrection (CRGB correction) |
| The color corrction to use for this controller, expressed as a CRGB object.
|
|
CLEDController & | setCorrection (LEDColorCorrection correction) |
| The color corrction to use for this controller, expressed as a CRGB object.
|
|
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 |
| Gets the maximum possible refresh rate of the strip.
|
|
|
static CLEDController * | head () |
| Get the first LED controller in the linked list of controllers.
|
|
Rgbw | mRgbMode = RgbwInvalid::value() |
|
static const EOrder | RGB_ORDER_VALUE |
| The RGB ordering for this controller.
|
|
static const int | LANES_VALUE |
| The number of lanes for this controller.
|
|
static const uint32_t | MASK_VALUE |
| The mask for the lanes for this controller.
|
|
virtual void | showColor (const CRGB &data, int nLeds, uint8_t brightness) |
| Set all the LEDs on the controller to a given color.
|
|
virtual void | show (const struct CRGB *data, int nLeds, uint8_t brightness) |
| Write the passed in RGB data out to the LEDs managed by this controller.
|
|
CRGB * | m_Data |
| pointer to the LED data used by this controller
|
|
CLEDController * | m_pNext |
| pointer to the next LED controller in the linked list
|
|
CRGB | m_ColorCorrection |
| CRGB object representing the color correction to apply to the strip on show()
|
|
CRGB | m_ColorTemperature |
| CRGB object representing the color temperature to apply to the strip on show()
|
|
EDitherMode | m_DitherMode |
| the current dither mode of the controller
|
|
int | m_nLeds |
| the number of LEDs in the LED data array
|
|
static CLEDController * | m_pHead = NULL |
| pointer to the first LED controller in the linked list
|
|
static CLEDController * | m_pTail = NULL |
| pointer to the last LED controller in the linked list
|
|