ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
ntc
ntc.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
6
namespace
esphome::ntc
{
7
8
class
NTC
final :
public
Component
,
public
sensor::Sensor
{
9
SUB_SENSOR(source)
10
11
public
:
12
void
set_a(
double
a) {
a_
= a; }
13
void
set_b(
double
b) {
b_
= b; }
14
void
set_c(
double
c) {
c_
= c; }
15
void
setup()
override
;
16
void
dump_config()
override
;
17
18
protected
:
19
void
process_
(
float
value
);
20
21
double
a_
;
22
double
b_
;
23
double
c_
;
24
};
25
26
}
// namespace esphome::ntc
esphome::Component
Definition
component.h:147
esphome::ntc::NTC
Definition
ntc.h:8
esphome::ntc::NTC::process_
void process_(float value)
Definition
ntc.cpp:14
esphome::ntc::NTC::b_
double b_
Definition
ntc.h:22
esphome::ntc::NTC::a_
double a_
Definition
ntc.h:21
esphome::ntc::NTC::c_
double c_
Definition
ntc.h:23
esphome::sensor::Sensor
Base-class for all sensors.
Definition
sensor.h:48
component.h
esphome::ntc
Definition
ntc.cpp:4
esphome::value
uint32_t value
Definition
hal.cpp:41
sensor.h
Generated by
1.12.0