12 void play(Ts...
x)
override { this->
parent_->start(); }
16 void play(Ts...
x)
override { this->
parent_->stop(); }
22 mic->
add_data_callback([
this](
const std::vector<int16_t> &data) { this->trigger(data); });
void add_data_callback(std::function< void(const std::vector< int16_t > &)> &&data_callback)
bool check(Ts... x) override
DataTrigger(Microphone *mic)
Base class for all automation conditions.
Implementation of SPI Controller mode.
Helper class to easily give an object a parent of type T.