ESPHome  2024.11.1
automation.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "aic3204.h"
6 
7 namespace esphome {
8 namespace aic3204 {
9 
10 template<typename... Ts> class SetAutoMuteAction : public Action<Ts...> {
11  public:
12  explicit SetAutoMuteAction(AIC3204 *aic3204) : aic3204_(aic3204) {}
13 
14  TEMPLATABLE_VALUE(uint8_t, auto_mute_mode)
15 
16  void play(Ts... x) override { this->aic3204_->set_auto_mute_mode(this->auto_mute_mode_.value(x...)); }
17 
18  protected:
20 };
21 
22 } // namespace aic3204
23 } // namespace esphome
SetAutoMuteAction(AIC3204 *aic3204)
Definition: automation.h:12
uint16_t x
Definition: tt21100.cpp:17
bool set_auto_mute_mode(uint8_t auto_mute_mode)
Definition: aic3204.cpp:130
TEMPLATABLE_VALUE(uint8_t, auto_mute_mode) void play(Ts... x) override
Definition: automation.h:14
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
virtual void play(Ts... x)=0