ESPHome
2026.5.0
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::gp8403
{
6
7
static
const
char
*
const
TAG =
"gp8403.output"
;
8
9
void
GP8403Output::dump_config
() {
10
ESP_LOGCONFIG(TAG,
11
"GP8403 Output:\n"
12
" Channel: %u"
,
13
this->
channel_
);
14
}
15
16
void
GP8403Output::write_state
(
float
state
) { this->
parent_
->write_state(state, this->
channel_
); }
17
18
}
// namespace esphome::gp8403
esphome::Parented< GP8403Component >::parent_
GP8403Component * parent_
Definition
helpers.h:1872
esphome::gp8403::GP8403Output::dump_config
void dump_config() override
Definition
gp8403_output.cpp:9
esphome::gp8403::GP8403Output::write_state
void write_state(float state) override
Definition
gp8403_output.cpp:16
esphome::gp8403::GP8403Output::channel_
uint8_t channel_
Definition
gp8403_output.h:18
state
bool state
Definition
fan.h:2
gp8403_output.h
log.h
esphome::gp8403
Definition
gp8403.cpp:5
Generated by
1.12.0