ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
bh1745
output
bh1745_output.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/output/binary_output.h
"
4
#include "
esphome/core/helpers.h
"
5
6
#include "
../bh1745.h
"
7
8
namespace
esphome::bh1745
{
9
11
class
BH1745InterruptPinOutput
:
public
output::BinaryOutput
,
public
Parented
<BH1745Component> {
12
protected
:
13
void
write_state
(
bool
state
)
override
{ this->
parent_
->set_interrupt_state(state); }
14
};
15
16
}
// namespace esphome::bh1745
bh1745.h
binary_output.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1997
esphome::Parented< BH1745Component >::parent_
BH1745Component * parent_
Definition
helpers.h:2008
esphome::bh1745::BH1745InterruptPinOutput
Drives the BH1745 INT pin, which switches the LEDs on breakout boards such as the Pimoroni one.
Definition
bh1745_output.h:11
esphome::bh1745::BH1745InterruptPinOutput::write_state
void write_state(bool state) override
Definition
bh1745_output.h:13
esphome::output::BinaryOutput
Definition
binary_output.h:17
state
bool state
Definition
fan.h:2
helpers.h
esphome::bh1745
Definition
bh1745.cpp:7
Generated by
1.12.0