ESPHome  2022.9.2
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.
Definition: a4988.cpp:4