ESPHome 2025.9.0-dev
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 void set_hot_junction(sensor::Sensor *hot_junction) { this->hot_junction_sensor_ = hot_junction; }
28 void set_cold_junction(sensor::Sensor *cold_junction) { this->cold_junction_sensor_ = cold_junction; }
30 this->thermocouple_type_ = thermocouple_type;
31 };
32
33 protected:
34 uint8_t device_id_{0};
35
38
40
46};
47
48} // namespace mcp9600
49} // namespace esphome
This class simplifies creating components that periodically check a state.
Definition component.h:425
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:27
sensor::Sensor * hot_junction_sensor_
Definition mcp9600.h:36
void set_thermocouple_type(MCP9600ThermocoupleType thermocouple_type)
Definition mcp9600.h:29
void set_cold_junction(sensor::Sensor *cold_junction)
Definition mcp9600.h:28
MCP9600ThermocoupleType thermocouple_type_
Definition mcp9600.h:39
enum esphome::mcp9600::MCP9600Component::ErrorCode NONE
sensor::Sensor * cold_junction_sensor_
Definition mcp9600.h:37
Base-class for all sensors.
Definition sensor.h:59
@ 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
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7