ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
mcp9600.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::mcp9600 {
8
19
20class MCP9600Component final : public PollingComponent, public i2c::I2CDevice {
21 SUB_SENSOR(hot_junction)
22 SUB_SENSOR(cold_junction)
23
24 public:
25 void setup() override;
26 void dump_config() override;
27 void update() override;
28
29 void set_thermocouple_type(MCP9600ThermocoupleType thermocouple_type) {
30 this->thermocouple_type_ = thermocouple_type;
31 };
32
33 protected:
34 uint8_t device_id_{0};
35
37};
38
39} // namespace esphome::mcp9600
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
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:144
MCP9600ThermocoupleType thermocouple_type_
Definition mcp9600.h:36
@ 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