21 for (int32_t i = this->
begin_; i < this->
end_; i++) {
44 c.set_effect_data(effect_data);
49 c.fade_to_white(amnt);
53 c.fade_to_black(amnt);
69 for (int32_t i = 0; i < this->
size(); i++)
70 (*
this)[i].
set(rhs[i].
get());
75 if (rhs.
begin_ == this->begin_)
78 if (rhs.
begin_ > this->begin_) {
80 for (int32_t i = 0; i < this->
size(); i++) {
81 (*this)[i].set(rhs[i].
get());
85 for (int32_t i = this->
size() - 1; i >= 0; i--) {
86 (*this)[i].set(rhs[i].
get());
void set_red(uint8_t red) override
void fade_to_white(uint8_t amnt) override
void set_white(uint8_t white) override
ESPColorView operator*() const
void darken(uint8_t delta) override
ESPRangeView & operator=(const Color &rhs)
int32_t HOT interpret_index(int32_t index, int32_t size)
AddressableLight * parent_
ESPColorView operator[](int32_t index) const
void fade_to_black(uint8_t amnt) override
void set(const Color &color) override
void lighten(uint8_t delta) override
Implementation of SPI Controller mode.
A half-open range of LEDs, inclusive of the begin index and exclusive of the end index, using zero-based numbering.
void set_effect_data(uint8_t effect_data) override
void set_blue(uint8_t blue) override
void set_green(uint8_t green) override