14 void play(
const Ts &...
x)
override {
15 bool state = this->state_.value(
x...);
16 this->
parent_->invert_on_off(state);
24 void play(
const Ts &...
x)
override {
25 bool state = this->state_.value(
x...);
26 this->
parent_->turn_on_off(state);
34 void play(
const Ts &...
x)
override {
35 bool state = this->state_.value(
x...);
36 this->
parent_->set_reverse(state);
44 void play(
const Ts &...
x)
override {
45 uint8_t
state = this->state_.value(
x...);
46 this->
parent_->set_intensity(state);
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
MAX7219Component * parent_
TEMPLATABLE_VALUE(uint8_t, state) void play(const Ts &...x) override
TEMPLATABLE_VALUE(bool, state) void play(const Ts &...x) override
TEMPLATABLE_VALUE(bool, state) void play(const Ts &...x) override
TEMPLATABLE_VALUE(bool, state) void play(const Ts &...x) override