22 void play(Ts...
x)
override {
23 auto call = this->select_->make_call();
24 call.set_option(this->option_.value(
x...));
37 void play(Ts...
x)
override {
38 auto call = this->select_->make_call();
39 call.set_index(this->index_.value(
x...));
50 TEMPLATABLE_VALUE(
bool, cycle)
53 void play(Ts...
x)
override {
54 auto call = this->select_->make_call();
55 call.with_operation(this->operation_.value(x...));
56 if (this->cycle_.has_value()) {
57 call.with_cycle(this->cycle_.value(x...));
SelectSetIndexAction(Select *select)
SelectOperationAction(Select *select)
TEMPLATABLE_VALUE(std::string, option) void play(Ts... x) override
SelectStateTrigger(Select *parent)
SelectSetAction(Select *select)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
TEMPLATABLE_VALUE(size_t, index) void play(Ts... x) override
Base-class for all selects.
Implementation of SPI Controller mode.
void add_on_state_callback(std::function< void(std::string, size_t)> &&callback)