13 void play(std::string rtttl);
31 ret = (ret * 10) + (
rtttl_[position_++] -
'0');
55 void play(Ts...
x)
override { this->
rtttl_->play(this->value_.value(
x...)); }
63 void play(Ts...
x)
override { this->parent_->stop(); }
68 bool check(Ts...
x)
override {
return this->parent_->is_playing(); }
void play(std::string rtttl)
void play(Ts... x) override
Base class for all output components that can output a variable level, like PWM.
void dump_config() override
CallbackManager< void()> on_finished_playback_callback_
void set_level(float state)
Set the level of this float output, this is called from the front-end.
bool check(Ts... x) override
Base class for all automation conditions.
uint16_t default_duration_
void set_output(output::FloatOutput *output)
output::FloatOutput * output_
TEMPLATABLE_VALUE(std::string, value) void play(Ts... x) override
void add_on_finished_playback_callback(std::function< void()> callback)
Implementation of SPI Controller mode.
FinishedPlaybackTrigger(Rtttl *parent)
Helper class to easily give an object a parent of type T.