ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
bh1745_output.h
Go to the documentation of this file.
1#pragma once
2
5
6#include "../bh1745.h"
7
8namespace esphome::bh1745 {
9
11class 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
Helper class to easily give an object a parent of type T.
Definition helpers.h:1997
Drives the BH1745 INT pin, which switches the LEDs on breakout boards such as the Pimoroni one.
void write_state(bool state) override
bool state
Definition fan.h:2