ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
max31855.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <cinttypes>
8
9namespace esphome::max31855 {
10
11class 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
virtual void setup()
Where the component's initialization should happen.
Definition component.cpp:84
This class simplifies creating components that periodically check a state.
Definition component.h:532
Base-class for all sensors.
Definition sensor.h:48
The SPIDevice is what components using the SPI will create.
Definition spi.h:456