And I should be able to port this over to Arduino?
runningAverage -= runningAverage >> 3; // multiply runningAverage by 7/8runningAverage += newReading >> 3; // add in 1/8 of the new reading.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16