ESPHome
2025.11.0b4
Loading...
Searching...
No Matches
esphome
components
gp8403
output
gp8403_output.cpp
Go to the documentation of this file.
1
#include "
gp8403_output.h
"
2
3
#include "
esphome/core/log.h
"
4
5
namespace
esphome
{
6
namespace
gp8403 {
7
8
static
const
char
*
const
TAG =
"gp8403.output"
;
9
10
void
GP8403Output::dump_config
() {
11
ESP_LOGCONFIG(TAG,
12
"GP8403 Output:\n"
13
" Channel: %u"
,
14
this->
channel_
);
15
}
16
17
void
GP8403Output::write_state
(
float
state
) { this->
parent_
->write_state(state, this->
channel_
); }
18
19
}
// namespace gp8403
20
}
// namespace esphome
esphome::Parented< GP8403Component >::parent_
GP8403Component * parent_
Definition
helpers.h:912
esphome::gp8403::GP8403Output::dump_config
void dump_config() override
Definition
gp8403_output.cpp:10
esphome::gp8403::GP8403Output::write_state
void write_state(float state) override
Definition
gp8403_output.cpp:17
esphome::gp8403::GP8403Output::channel_
uint8_t channel_
Definition
gp8403_output.h:19
state
bool state
Definition
fan.h:0
gp8403_output.h
log.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0