9namespace max7219digit {
15 void play(Ts...
x)
override {
16 bool state = this->state_.value(
x...);
17 this->
parent_->invert_on_off(state);
25 void play(Ts...
x)
override {
26 bool state = this->state_.value(
x...);
27 this->
parent_->turn_on_off(state);
35 void play(Ts...
x)
override {
36 bool state = this->state_.value(
x...);
37 this->
parent_->set_reverse(state);
45 void play(Ts...
x)
override {
46 uint8_t
state = this->state_.value(
x...);
47 this->
parent_->set_intensity(state);
virtual void play(Ts... x)=0
Helper class to easily give an object a parent of type T.
MAX7219Component * parent_
TEMPLATABLE_VALUE(uint8_t, state) void play(Ts... x) override
TEMPLATABLE_VALUE(bool, state) void play(Ts... x) override
TEMPLATABLE_VALUE(bool, state) void play(Ts... x) override
TEMPLATABLE_VALUE(bool, state) void play(Ts... x) override
Providing packet encoding functions for exchanging data with a remote host.