ESPHome 2025.5.0
Loading...
Searching...
No Matches
mcp9600.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace mcp9600 {
9
20
22 public:
23 void setup() override;
24 void dump_config() override;
25 void update() override;
26
27 float get_setup_priority() const override { return setup_priority::DATA; }
28
29 void set_hot_junction(sensor::Sensor *hot_junction) { this->hot_junction_sensor_ = hot_junction; }
30 void set_cold_junction(sensor::Sensor *cold_junction) { this->cold_junction_sensor_ = cold_junction; }
32 this->thermocouple_type_ = thermocouple_type;
33 };
34
35 protected:
36 uint8_t device_id_{0};
37
40
42
48};
49
50} // namespace mcp9600
51} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:301
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
void set_hot_junction(sensor::Sensor *hot_junction)
Definition mcp9600.h:29
sensor::Sensor * hot_junction_sensor_
Definition mcp9600.h:38
void set_thermocouple_type(MCP9600ThermocoupleType thermocouple_type)
Definition mcp9600.h:31
void set_cold_junction(sensor::Sensor *cold_junction)
Definition mcp9600.h:30
MCP9600ThermocoupleType thermocouple_type_
Definition mcp9600.h:41
enum esphome::mcp9600::MCP9600Component::ErrorCode NONE
float get_setup_priority() const override
Definition mcp9600.h:27
sensor::Sensor * cold_junction_sensor_
Definition mcp9600.h:39
Base-class for all sensors.
Definition sensor.h:57
@ MCP9600_THERMOCOUPLE_TYPE_E
Definition mcp9600.h:16
@ MCP9600_THERMOCOUPLE_TYPE_T
Definition mcp9600.h:13
@ MCP9600_THERMOCOUPLE_TYPE_R
Definition mcp9600.h:18
@ MCP9600_THERMOCOUPLE_TYPE_K
Definition mcp9600.h:11
@ MCP9600_THERMOCOUPLE_TYPE_B
Definition mcp9600.h:17
@ MCP9600_THERMOCOUPLE_TYPE_J
Definition mcp9600.h:12
@ MCP9600_THERMOCOUPLE_TYPE_S
Definition mcp9600.h:15
@ MCP9600_THERMOCOUPLE_TYPE_N
Definition mcp9600.h:14
const float DATA
For components that import data from directly connected sensors like DHT.
Definition component.cpp:19
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7