ESPHome
2025.12.0-dev
Loading...
Searching...
No Matches
esphome
components
lm75b
lm75b.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
lm75b {
9
10
static
const
uint8_t LM75B_REG_TEMPERATURE = 0x00;
11
12
class
LM75BComponent
:
public
PollingComponent
,
public
i2c::I2CDevice
,
public
sensor::Sensor
{
13
public
:
14
void
dump_config
()
override
;
15
void
update
()
override
;
16
};
17
18
}
// namespace lm75b
19
}
// namespace esphome
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:437
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::lm75b::LM75BComponent
Definition
lm75b.h:12
esphome::lm75b::LM75BComponent::update
void update() override
Definition
lm75b.cpp:20
esphome::lm75b::LM75BComponent::dump_config
void dump_config() override
Definition
lm75b.cpp:10
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