ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
bh1900nux
bh1900nux.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
#include "
esphome/components/i2c/i2c.h
"
6
7
namespace
esphome::bh1900nux
{
8
9
class
BH1900NUXSensor
:
public
sensor::Sensor
,
public
PollingComponent
,
public
i2c::I2CDevice
{
10
public
:
11
void
setup
()
override
;
12
void
update
()
override
;
13
void
dump_config
()
override
;
14
};
15
16
}
// namespace esphome::bh1900nux
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:585
esphome::bh1900nux::BH1900NUXSensor
Definition
bh1900nux.h:9
esphome::bh1900nux::BH1900NUXSensor::update
void update() override
Definition
bh1900nux.cpp:30
esphome::bh1900nux::BH1900NUXSensor::dump_config
void dump_config() override
Definition
bh1900nux.cpp:46
esphome::bh1900nux::BH1900NUXSensor::setup
void setup() override
Definition
bh1900nux.cpp:20
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:47
component.h
i2c.h
esphome::bh1900nux
Definition
bh1900nux.cpp:4
sensor.h
Generated by
1.12.0