FastLED 3.7.8
Loading...
Searching...
No Matches
RGBWEmulatedController< CONTROLLER, RGB_ORDER > Class Template Reference

Detailed Description

template<typename CONTROLLER, EOrder RGB_ORDER = GRB>
class RGBWEmulatedController< CONTROLLER, RGB_ORDER >

Definition at line 80 of file chipsets.h.

+ Inheritance diagram for RGBWEmulatedController< CONTROLLER, RGB_ORDER >:

Public Member Functions

 RGBWEmulatedController (const Rgbw &rgbw=RgbwDefault())
 
virtual void showPixels (PixelController< RGB_ORDER, LANES, MASK > &pixels)
 Send the LED data to the strip.
 
- Public Member Functions inherited from CPixelLEDController< GRB, CONTROLLER::LANES_VALUE, CONTROLLER::MASK_VALUE >
int lanes ()
 Get the number of lanes of the Controller.
 
- Public Member Functions inherited from CLEDController
CLEDControllersetRgbw (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)
 Clear out/zero out the given number of LEDs.
 
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.
 
void showColor (const struct CRGB &data, int nLeds, uint8_t brightness)
 Set all the LEDs to a given color.
 
void showLeds (uint8_t brightness=255)
 Write the data to the LEDs managed by this controller.
 
void showColor (const struct CRGB &data, uint8_t brightness=255)
 Set all the LEDs to a given color.
 
CLEDControllernext ()
 Get the next controller in the linked list after this one.
 
CLEDControllersetLeds (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?
 
CRGBleds ()
 Pointer to the CRGB array for this controller.
 
CRGBoperator[] (int x)
 Reference to the n'th LED managed by the controller.
 
CLEDControllersetDither (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.
 
virtual void * beginShowLeds ()
 
virtual void endShowLeds (void *data)
 
CLEDControllersetCorrection (CRGB correction)
 The color corrction to use for this controller, expressed as a CRGB object.
 
CLEDControllersetCorrection (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.
 
CLEDControllersetTemperature (CRGB temperature)
 Set the color temperature, aka white point, for this controller.
 
CLEDControllersetTemperature (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 Public Attributes

static const int LANES = CONTROLLER::LANES_VALUE
 
static const uint32_t MASK = CONTROLLER::MASK_VALUE
 
- Static Public Attributes inherited from CPixelLEDController< GRB, CONTROLLER::LANES_VALUE, CONTROLLER::MASK_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.
 

Additional Inherited Members

- Static Public Member Functions inherited from CLEDController
static CLEDControllerhead ()
 Get the first LED controller in the linked list of controllers.
 
static CRGB computeAdjustment (uint8_t scale, const CRGB &colorCorrection, const CRGB &colorTemperature)
 Calculates the combined color adjustment to the LEDs at a given scale, color correction, and color temperature.
 
- Public Attributes inherited from CLEDController
Rgbw mRgbMode = RgbwInvalid::value()
 
- Protected Member Functions inherited from CPixelLEDController< GRB, CONTROLLER::LANES_VALUE, CONTROLLER::MASK_VALUE >
virtual void showColor (const struct CRGB &data, int nLeds, CRGB scale_pre_mixed)
 Set all the LEDs on the controller to a given color.
 
virtual void show (const struct CRGB *data, int nLeds, CRGB scale_pre_mixed)
 Write the passed in RGB data out to the LEDs managed by this controller.
 
- Protected Attributes inherited from CLEDController
CRGBm_Data
 pointer to the LED data used by this controller
 
CLEDControllerm_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 Protected Attributes inherited from CLEDController
static CLEDControllerm_pHead = NULL
 pointer to the first LED controller in the linked list
 
static CLEDControllerm_pTail = NULL
 pointer to the last LED controller in the linked list
 

Constructor & Destructor Documentation

◆ RGBWEmulatedController()

template<typename CONTROLLER , EOrder RGB_ORDER = GRB>
RGBWEmulatedController< CONTROLLER, RGB_ORDER >::RGBWEmulatedController ( const Rgbw & rgbw = RgbwDefault())
inline

Definition at line 90 of file chipsets.h.

◆ ~RGBWEmulatedController()

template<typename CONTROLLER , EOrder RGB_ORDER = GRB>
RGBWEmulatedController< CONTROLLER, RGB_ORDER >::~RGBWEmulatedController ( )
inline

Definition at line 93 of file chipsets.h.

Member Function Documentation

◆ showPixels()

template<typename CONTROLLER , EOrder RGB_ORDER = GRB>
virtual void RGBWEmulatedController< CONTROLLER, RGB_ORDER >::showPixels ( PixelController< RGB_ORDER, LANES, MASK > & pixels)
inlinevirtual

Send the LED data to the strip.

Parameters
pixelsthe PixelController object for the LED data

Implements CPixelLEDController< GRB, CONTROLLER::LANES_VALUE, CONTROLLER::MASK_VALUE >.

Definition at line 95 of file chipsets.h.

Member Data Documentation

◆ LANES

template<typename CONTROLLER , EOrder RGB_ORDER = GRB>
const int RGBWEmulatedController< CONTROLLER, RGB_ORDER >::LANES = CONTROLLER::LANES_VALUE
static

Definition at line 84 of file chipsets.h.

◆ MASK

template<typename CONTROLLER , EOrder RGB_ORDER = GRB>
const uint32_t RGBWEmulatedController< CONTROLLER, RGB_ORDER >::MASK = CONTROLLER::MASK_VALUE
static

Definition at line 85 of file chipsets.h.


The documentation for this class was generated from the following file: