ESPHome  2024.11.0
max6675.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace max6675 {
9 
11  public PollingComponent,
12  public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
13  spi::DATA_RATE_1MHZ> {
14  public:
15  void setup() override;
16  void dump_config() override;
17  float get_setup_priority() const override;
18 
19  void update() override;
20 
21  protected:
22  void read_data_();
23 };
24 
25 } // namespace max6675
26 } // namespace esphome
void dump_config() override
Definition: max6675.cpp:24
This class simplifies creating components that periodically check a state.
Definition: component.h:283
The SPIDevice is what components using the SPI will create.
Definition: spi.h:391
float get_setup_priority() const override
Definition: max6675.cpp:29
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57