ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
max31855
max31855.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/spi/spi.h
"
6
7
#include <cinttypes>
8
9
namespace
esphome::max31855
{
10
11
class
MAX31855Sensor
final :
public
sensor::Sensor
,
12
public
PollingComponent
,
13
public
spi::SPIDevice
<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH,
14
spi::CLOCK_PHASE_TRAILING, spi::DATA_RATE_4MHZ> {
15
SUB_SENSOR(reference)
16
17
public
:
18
void
setup
()
override
;
19
void
dump_config()
override
;
20
21
void
update()
override
;
22
23
protected
:
24
void
read_data_
();
25
};
26
27
}
// namespace esphome::max31855
esphome::Component::setup
virtual void setup()
Where the component's initialization should happen.
Definition
component.cpp:84
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition
component.h:532
esphome::max31855::MAX31855Sensor
Definition
max31855.h:14
esphome::max31855::MAX31855Sensor::read_data_
void read_data_()
Definition
max31855.cpp:34
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:48
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition
spi.h:456
component.h
esphome::max31855
Definition
max31855.cpp:6
sensor.h
spi.h
Generated by
1.12.0