ESPHome
2025.12.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
{
8
namespace
bh1900nux {
9
10
class
BH1900NUXSensor
:
public
sensor::Sensor
,
public
PollingComponent
,
public
i2c::I2CDevice
{
11
public
:
12
void
setup
()
override
;
13
void
update
()
override
;
14
void
dump_config
()
override
;
15
};
16
17
}
// namespace bh1900nux
18
}
// namespace esphome
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:437
esphome::bh1900nux::BH1900NUXSensor
Definition
bh1900nux.h:10
esphome::bh1900nux::BH1900NUXSensor::update
void update() override
Definition
bh1900nux.cpp:31
esphome::bh1900nux::BH1900NUXSensor::dump_config
void dump_config() override
Definition
bh1900nux.cpp:47
esphome::bh1900nux::BH1900NUXSensor::setup
void setup() override
Definition
bh1900nux.cpp:21
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:42
component.h
i2c.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
sensor.h
Generated by
1.12.0