ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
tm1638_switch_led.h
Go to the documentation of this file.
1#pragma once
2
5#include "../tm1638.h"
6
7namespace esphome::tm1638 {
8
10 public:
11 void dump_config() override;
12
13 void set_tm1638(TM1638Component *tm1638) { tm1638_ = tm1638; }
14 void set_lednum(int led) { led_ = led; }
15
16 protected:
17 void write_state(bool state) override;
19 int led_;
20};
21} // namespace esphome::tm1638
Base class for all switches.
Definition switch.h:38
bool state
The current reported state of the binary sensor.
Definition switch.h:55
void set_tm1638(TM1638Component *tm1638)
void write_state(bool state) override