ESPHome  2024.11.2
Public Member Functions
esphome::light::ESPColorSettable Class Referenceabstract

#include <esp_color_view.h>

Inheritance diagram for esphome::light::ESPColorSettable:
esphome::light::ESPColorView esphome::light::ESPRangeView

Public Member Functions

virtual void set (const Color &color)=0
 
virtual void set_red (uint8_t red)=0
 
virtual void set_green (uint8_t green)=0
 
virtual void set_blue (uint8_t blue)=0
 
virtual void set_white (uint8_t white)=0
 
virtual void set_effect_data (uint8_t effect_data)=0
 
virtual void fade_to_white (uint8_t amnt)=0
 
virtual void fade_to_black (uint8_t amnt)=0
 
virtual void lighten (uint8_t delta)=0
 
virtual void darken (uint8_t delta)=0
 
void set (const ESPHSVColor &color)
 
void set_hsv (const ESPHSVColor &color)
 
void set_rgb (uint8_t red, uint8_t green, uint8_t blue)
 
void set_rgbw (uint8_t red, uint8_t green, uint8_t blue, uint8_t white)
 

Detailed Description

Definition at line 10 of file esp_color_view.h.

Member Function Documentation

◆ darken()

virtual void esphome::light::ESPColorSettable::darken ( uint8_t  delta)
pure virtual

◆ fade_to_black()

virtual void esphome::light::ESPColorSettable::fade_to_black ( uint8_t  amnt)
pure virtual

◆ fade_to_white()

virtual void esphome::light::ESPColorSettable::fade_to_white ( uint8_t  amnt)
pure virtual

◆ lighten()

virtual void esphome::light::ESPColorSettable::lighten ( uint8_t  delta)
pure virtual

◆ set() [1/2]

virtual void esphome::light::ESPColorSettable::set ( const Color color)
pure virtual

◆ set() [2/2]

void esphome::light::ESPColorSettable::set ( const ESPHSVColor color)
inline

Definition at line 22 of file esp_color_view.h.

◆ set_blue()

virtual void esphome::light::ESPColorSettable::set_blue ( uint8_t  blue)
pure virtual

◆ set_effect_data()

virtual void esphome::light::ESPColorSettable::set_effect_data ( uint8_t  effect_data)
pure virtual

◆ set_green()

virtual void esphome::light::ESPColorSettable::set_green ( uint8_t  green)
pure virtual

◆ set_hsv()

void esphome::light::ESPColorSettable::set_hsv ( const ESPHSVColor color)
inline

Definition at line 23 of file esp_color_view.h.

◆ set_red()

virtual void esphome::light::ESPColorSettable::set_red ( uint8_t  red)
pure virtual

◆ set_rgb()

void esphome::light::ESPColorSettable::set_rgb ( uint8_t  red,
uint8_t  green,
uint8_t  blue 
)
inline

Definition at line 27 of file esp_color_view.h.

◆ set_rgbw()

void esphome::light::ESPColorSettable::set_rgbw ( uint8_t  red,
uint8_t  green,
uint8_t  blue,
uint8_t  white 
)
inline

Definition at line 32 of file esp_color_view.h.

◆ set_white()

virtual void esphome::light::ESPColorSettable::set_white ( uint8_t  white)
pure virtual

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