modm API documentation
modm::Sk6812w< SpiMaster, Output, LEDs > Class Template Reference

Public Member Functions

template<class SystemClock >
void initialize ()
 
void clear ()
 
void setColorBrightness (size_t index, const color::Rgb &color, uint8_t brightness)
 
void setColor (size_t index, const color::Rgb &color)
 
color::Rgb getColor (size_t index) const
 
void setBrightness (size_t index, uint8_t brightness)
 
uint8_t getBrightness (size_t index) const
 
void write ()
 

Static Public Attributes

static constexpr size_t size = LEDs
 

Static Protected Member Functions

static constexpr uint16_t spread (uint8_t nibble)
 
static constexpr uint8_t gather (uint32_t pattern)
 

Protected Attributes

uint8_t data [length+1]
 

Static Protected Attributes

static constexpr uint32_t base_mask = 0b0010'0100'1001'0010'0100'1001
 
static constexpr uint32_t clear_mask = base_mask << 1
 
static constexpr size_t length = LEDs * 12
 

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