ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
max6675
max6675.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/sensor/sensor.h
"
5
#include "
esphome/components/spi/spi.h
"
6
7
namespace
esphome
{
8
namespace
max6675 {
9
10
class
MAX6675Sensor
:
public
sensor::Sensor
,
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
esphome::max6675::MAX6675Sensor::update
void update() override
Definition:
max6675.cpp:9
esphome::max6675::MAX6675Sensor
Definition:
max6675.h:10
esphome::max6675::MAX6675Sensor::dump_config
void dump_config() override
Definition:
max6675.cpp:24
esphome::PollingComponent
This class simplifies creating components that periodically check a state.
Definition:
component.h:283
spi.h
sensor.h
esphome::spi::SPIDevice
The SPIDevice is what components using the SPI will create.
Definition:
spi.h:410
esphome::max6675::MAX6675Sensor::setup
void setup() override
Definition:
max6675.cpp:20
esphome::max6675::MAX6675Sensor::get_setup_priority
float get_setup_priority() const override
Definition:
max6675.cpp:29
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
esphome::max6675::MAX6675Sensor::read_data_
void read_data_()
Definition:
max6675.cpp:30
Generated by
1.8.13