ESPHome
2024.11.2
|
Abstract interface for components to request voltage (usually ADC readings) More...
#include <voltage_sampler.h>
Public Member Functions | |
virtual float | sample ()=0 |
Get a voltage reading, in V. More... | |
Abstract interface for components to request voltage (usually ADC readings)
Definition at line 9 of file voltage_sampler.h.
|
pure virtual |
Get a voltage reading, in V.
Implemented in esphome::adc::ADCSensor, esphome::cd74hc4067::CD74HC4067Sensor, esphome::ads1118::ADS1118Sensor, esphome::ads1115::ADS1115Sensor, esphome::adc128s102::ADC128S102Sensor, esphome::mcp3008::MCP3008Sensor, and esphome::mcp3204::MCP3204Sensor.