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