ESPHome  2024.3.1
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.
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7