Kaleidoscope
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
kaleidoscope::LEDPaletteTheme Class Reference

#include <LED-Palette-Theme.h>

Inheritance diagram for kaleidoscope::LEDPaletteTheme:
Inheritance graph
[legend]
Collaboration diagram for kaleidoscope::LEDPaletteTheme:
Collaboration graph
[legend]

Public Member Functions

 LEDPaletteTheme (void)
 
void begin (void) final
 

Static Public Member Functions

static uint16_t reserveThemes (uint8_t max_themes)
 
static void updateHandler (uint16_t theme_base, uint8_t theme)
 
static const uint8_t lookupColorIndexAtPosition (uint16_t theme_base, uint16_t position)
 
static const bool lookupColorAtPosition (uint16_t theme_base, uint16_t position, cRGB *color)
 
static void updateColorIndexAtPosition (uint16_t theme_base, uint16_t position, uint8_t color_index)
 
static const cRGB lookupPaletteColor (uint8_t palette_index)
 
static bool paletteFocusHook (const char *command)
 
static bool themeFocusHandler (const char *command, const char *expected_command, uint16_t theme_base, uint8_t max_themes)
 

Static Public Attributes

static uint8_t transparent_index = 15
 

Constructor & Destructor Documentation

◆ LEDPaletteTheme()

kaleidoscope::LEDPaletteTheme::LEDPaletteTheme ( void  )

Member Function Documentation

◆ begin()

void kaleidoscope::LEDPaletteTheme::begin ( void  )
finalvirtual

Implements KaleidoscopePlugin.

◆ lookupColorAtPosition()

const bool kaleidoscope::LEDPaletteTheme::lookupColorAtPosition ( uint16_t  theme_base,
uint16_t  position,
cRGB color 
)
static

◆ lookupColorIndexAtPosition()

const uint8_t kaleidoscope::LEDPaletteTheme::lookupColorIndexAtPosition ( uint16_t  theme_base,
uint16_t  position 
)
static

◆ lookupPaletteColor()

const cRGB kaleidoscope::LEDPaletteTheme::lookupPaletteColor ( uint8_t  palette_index)
static

◆ paletteFocusHook()

bool kaleidoscope::LEDPaletteTheme::paletteFocusHook ( const char *  command)
static

◆ reserveThemes()

uint16_t kaleidoscope::LEDPaletteTheme::reserveThemes ( uint8_t  max_themes)
static

◆ themeFocusHandler()

bool kaleidoscope::LEDPaletteTheme::themeFocusHandler ( const char *  command,
const char *  expected_command,
uint16_t  theme_base,
uint8_t  max_themes 
)
static

◆ updateColorIndexAtPosition()

void kaleidoscope::LEDPaletteTheme::updateColorIndexAtPosition ( uint16_t  theme_base,
uint16_t  position,
uint8_t  color_index 
)
static

◆ updateHandler()

void kaleidoscope::LEDPaletteTheme::updateHandler ( uint16_t  theme_base,
uint8_t  theme 
)
static

Member Data Documentation

◆ transparent_index

uint8_t kaleidoscope::LEDPaletteTheme::transparent_index = 15
static

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