ESPHome  2022.8.0
Public Member Functions
esphome::voltage_sampler::VoltageSampler Class Referenceabstract

Abstract interface for components to request voltage (usually ADC readings) More...

#include <voltage_sampler.h>

Inheritance diagram for esphome::voltage_sampler::VoltageSampler:
esphome::adc::ADCSensor esphome::ads1115::ADS1115Sensor esphome::cd74hc4067::CD74HC4067Sensor esphome::mcp3008::MCP3008Sensor esphome::mcp3204::MCP3204Sensor

Public Member Functions

virtual float sample ()=0
 Get a voltage reading, in V. More...
 

Detailed Description

Abstract interface for components to request voltage (usually ADC readings)

Definition at line 9 of file voltage_sampler.h.

Member Function Documentation

◆ sample()

virtual float esphome::voltage_sampler::VoltageSampler::sample ( )
pure virtual

The documentation for this class was generated from the following file: