ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
voltage_sampler.h
Go to the documentation of this file.
1#pragma once
2
4
6
9 public:
11 virtual float sample() = 0;
12};
13
14} // namespace esphome::voltage_sampler
Abstract interface for components to request voltage (usually ADC readings)
virtual float sample()=0
Get a voltage reading, in V.