ESPHome
2024.11.3
esphome
esphome
components
tm1638
output
tm1638_output_led.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/output/binary_output.h
"
5
#include "../tm1638.h"
6
7
namespace
esphome
{
8
namespace
tm1638 {
9
10
class
TM1638OutputLed
:
public
output::BinaryOutput
,
public
Component
{
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
20
TM1638Component
*
tm1638_
;
21
int
led_
;
22
};
23
24
}
// namespace tm1638
25
}
// namespace esphome
esphome::tm1638::TM1638Component
Definition:
tm1638.h:23
esphome::tm1638::TM1638OutputLed
Definition:
tm1638_output_led.h:10
esphome::Component
Definition:
component.h:68
binary_output.h
esphome::tm1638::TM1638OutputLed::set_lednum
void set_lednum(int led)
Definition:
tm1638_output_led.h:15
esphome::output::BinaryOutput
Definition:
binary_output.h:18
esphome::tm1638::TM1638OutputLed::led_
int led_
Definition:
tm1638_output_led.h:21
esphome::tm1638::TM1638OutputLed::set_tm1638
void set_tm1638(TM1638Component *tm1638)
Definition:
tm1638_output_led.h:14
esphome::tm1638::TM1638OutputLed::dump_config
void dump_config() override
Definition:
tm1638_output_led.cpp:11
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::tm1638::TM1638OutputLed::write_state
void write_state(bool state) override
Definition:
tm1638_output_led.cpp:9
esphome::tm1638::TM1638OutputLed::tm1638_
TM1638Component * tm1638_
Definition:
tm1638_output_led.h:20
state
bool state
Definition:
fan.h:34
Generated by
1.8.13