4 #include <EMASampler.h> 25 const uint16_t periodMs,
Exponential Moving Average current sampler.
virtual float averageAmps()
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.
virtual float lastAmps()
Get the most recent voltage value.
EMACurrentSampler(const uint8_t pin, const float vSupply, const float vRef, const float iOffset, const uint16_t periodMs, const float alpha)