ESPHome
2024.11.1
esphome
esphome
components
voltage_sampler
voltage_sampler.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
5
namespace
esphome
{
6
namespace
voltage_sampler {
7
9
class
VoltageSampler
{
10
public
:
12
virtual
float
sample
() = 0;
13
};
14
15
}
// namespace voltage_sampler
16
}
// namespace esphome
esphome::voltage_sampler::VoltageSampler
Abstract interface for components to request voltage (usually ADC readings)
Definition:
voltage_sampler.h:9
esphome::voltage_sampler::VoltageSampler::sample
virtual float sample()=0
Get a voltage reading, in V.
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
Generated by
1.8.13