ESPHome  2024.11.1
tm1638_output_led.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "../tm1638.h"
6 
7 namespace esphome {
8 namespace tm1638 {
9 
11  public:
12  void dump_config() override;
13 
14  void set_tm1638(TM1638Component *tm1638) { tm1638_ = tm1638; }
15  void set_lednum(int led) { led_ = led; }
16 
17  protected:
18  void write_state(bool state) override;
19 
21  int led_;
22 };
23 
24 } // namespace tm1638
25 } // namespace esphome
void set_tm1638(TM1638Component *tm1638)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void write_state(bool state) override
bool state
Definition: fan.h:34