4 #include <EMASampler.h> 22 const uint16_t r1KOhm,
23 const uint16_t r2KOhm,
25 const uint16_t periodMs,
virtual float averageVolts()
Get the mean value in the sample set.
uint8_t pin()
Accessor for the pin which is geting read from.
Exponential Moving Average (EMA) analog pin sampler.
EMAVDivSampler(const uint8_t pin, const uint16_t r1KOhm, const uint16_t r2KOhm, const float vRef, const uint16_t periodMs, const float alpha)
Exponential Moving Average Voltage Divider based voltage sampler.
virtual float lastVolts()
Get the most recent voltage value.