ESPHome 2025.5.0
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 {
8namespace 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;
20 int led_;
21};
22} // namespace tm1638
23} // namespace esphome
Base class for all switches.
Definition switch.h:39
bool state
The current reported state of the binary sensor.
Definition switch.h:53
void set_tm1638(TM1638Component *tm1638)
void write_state(bool state) override
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7