ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
mcp9600.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::mcp9600 {
8
19
21 public:
22 void setup() override;
23 void dump_config() override;
24 void update() override;
25
26 void set_hot_junction(sensor::Sensor *hot_junction) { this->hot_junction_sensor_ = hot_junction; }
27 void set_cold_junction(sensor::Sensor *cold_junction) { this->cold_junction_sensor_ = cold_junction; }
29 this->thermocouple_type_ = thermocouple_type;
30 };
31
32 protected:
33 uint8_t device_id_{0};
34
37
39
45};
46
47} // namespace esphome::mcp9600
This class simplifies creating components that periodically check a state.
Definition component.h:585
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
void set_hot_junction(sensor::Sensor *hot_junction)
Definition mcp9600.h:26
sensor::Sensor * hot_junction_sensor_
Definition mcp9600.h:35
void set_thermocouple_type(MCP9600ThermocoupleType thermocouple_type)
Definition mcp9600.h:28
void set_cold_junction(sensor::Sensor *cold_junction)
Definition mcp9600.h:27
MCP9600ThermocoupleType thermocouple_type_
Definition mcp9600.h:38
enum esphome::mcp9600::MCP9600Component::ErrorCode NONE
sensor::Sensor * cold_junction_sensor_
Definition mcp9600.h:36
Base-class for all sensors.
Definition sensor.h:47
@ MCP9600_THERMOCOUPLE_TYPE_E
Definition mcp9600.h:15
@ MCP9600_THERMOCOUPLE_TYPE_T
Definition mcp9600.h:12
@ MCP9600_THERMOCOUPLE_TYPE_R
Definition mcp9600.h:17
@ MCP9600_THERMOCOUPLE_TYPE_K
Definition mcp9600.h:10
@ MCP9600_THERMOCOUPLE_TYPE_B
Definition mcp9600.h:16
@ MCP9600_THERMOCOUPLE_TYPE_J
Definition mcp9600.h:11
@ MCP9600_THERMOCOUPLE_TYPE_S
Definition mcp9600.h:14
@ MCP9600_THERMOCOUPLE_TYPE_N
Definition mcp9600.h:13