ESPHome  2024.11.0
Data Structures | Namespaces | Enumerations | Functions
color_mode.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::light::ColorCapabilityHelper
 Helper class to allow bitwise operations on ColorCapability. More...
 
class  esphome::light::ColorModeHelper
 Helper class to allow bitwise operations on ColorMode with ColorCapability. More...
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::light
 

Enumerations

enum  esphome::light::ColorCapability : uint8_t {
  esphome::light::ColorCapability::ON_OFF = 1 << 0, esphome::light::ColorCapability::BRIGHTNESS = 1 << 1, esphome::light::ColorCapability::WHITE = 1 << 2, esphome::light::ColorCapability::COLOR_TEMPERATURE = 1 << 3,
  esphome::light::ColorCapability::COLD_WARM_WHITE = 1 << 4, esphome::light::ColorCapability::RGB = 1 << 5
}
 Color capabilities are the various outputs that a light has and that can be independently controlled by the user. More...
 
enum  esphome::light::ColorMode : uint8_t {
  esphome::light::ColorMode::UNKNOWN = 0, esphome::light::ColorMode::ON_OFF = (uint8_t) ColorCapability::ON_OFF, esphome::light::ColorMode::BRIGHTNESS = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS), esphome::light::ColorMode::WHITE = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS | ColorCapability::WHITE),
  esphome::light::ColorMode::COLOR_TEMPERATURE, esphome::light::ColorMode::COLD_WARM_WHITE, esphome::light::ColorMode::RGB = (uint8_t) (ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS | ColorCapability::RGB), esphome::light::ColorMode::RGB_WHITE,
  esphome::light::ColorMode::RGB_COLOR_TEMPERATURE, esphome::light::ColorMode::RGB_COLD_WARM_WHITE
}
 Color modes are a combination of color capabilities that can be used at the same time. More...
 

Functions

constexpr ColorCapabilityHelper esphome::light::operator & (ColorCapability lhs, ColorCapability rhs)
 
constexpr ColorCapabilityHelper esphome::light::operator & (ColorCapabilityHelper lhs, ColorCapability rhs)
 
constexpr ColorCapabilityHelper esphome::light::operator| (ColorCapability lhs, ColorCapability rhs)
 
constexpr ColorCapabilityHelper esphome::light::operator| (ColorCapabilityHelper lhs, ColorCapability rhs)
 
constexpr ColorModeHelper esphome::light::operator & (ColorMode lhs, ColorMode rhs)
 
constexpr ColorModeHelper esphome::light::operator & (ColorMode lhs, ColorCapability rhs)
 
constexpr ColorModeHelper esphome::light::operator & (ColorModeHelper lhs, ColorMode rhs)
 
constexpr ColorModeHelper esphome::light::operator| (ColorMode lhs, ColorMode rhs)
 
constexpr ColorModeHelper esphome::light::operator| (ColorMode lhs, ColorCapability rhs)
 
constexpr ColorModeHelper esphome::light::operator| (ColorModeHelper lhs, ColorMode rhs)