20 uint8_t res = esp_scale8(esp_scale8(red, this->
max_brightness_.
red), this->local_brightness_);
24 uint8_t res = esp_scale8(esp_scale8(green, this->
max_brightness_.
green), this->local_brightness_);
28 uint8_t res = esp_scale8(esp_scale8(blue, this->
max_brightness_.
blue), this->local_brightness_);
32 uint8_t res = esp_scale8(esp_scale8(white, this->
max_brightness_.
white), this->local_brightness_);
45 return (uint8_t) std::min(res, uint16_t(255));
52 return (uint8_t) std::min(res, uint16_t(255));
59 return (uint8_t) std::min(res, uint16_t(255));
66 return (uint8_t) std::min(res, uint16_t(255));
uint8_t color_correct_white(uint8_t white) const ESPHOME_ALWAYS_INLINE
void calculate_gamma_table(float gamma)
void set_max_brightness(const Color &max_brightness)
Color color_uncorrect(Color color) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_green(uint8_t green) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_red(uint8_t red) const ESPHOME_ALWAYS_INLINE
uint8_t color_uncorrect_red(uint8_t red) const ESPHOME_ALWAYS_INLINE
void set_local_brightness(uint8_t local_brightness)
uint8_t color_uncorrect_blue(uint8_t blue) const ESPHOME_ALWAYS_INLINE
uint8_t gamma_reverse_table_[256]
uint8_t color_uncorrect_green(uint8_t green) const ESPHOME_ALWAYS_INLINE
uint8_t gamma_table_[256]
Implementation of SPI Controller mode.
uint8_t color_correct_blue(uint8_t blue) const ESPHOME_ALWAYS_INLINE
uint8_t color_uncorrect_white(uint8_t white) const ESPHOME_ALWAYS_INLINE
uint8_t local_brightness_
Color color_correct(Color color) const ESPHOME_ALWAYS_INLINE