Skip to content

DanForever/SimpleSmooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimpleSmooth

An easy way to calculate a rolling average (Arduino library)

Expands on the"smooth" library by Salah Bouhoun which itself appears to be based on https://docs.arduino.cc/built-in-examples/analog/Smoothing/.

Example

SimpleSmooth<> mySmoother;

int average = mySmoother.Add(analogRead(A0));
int averageAgain = mySmoother.Average();

You can customise the number and type using the optional template parameters:

SimpleSmooth<8, float> floatExampleSmoother;

About

An easy way to calculate a rolling average (Arduino library)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages