This can be coded in Arduino orC language
Write an Arduino function to compute an 8 point moving average of sampled data. The function should take an integer input (the most recent sample) and provide an integer output (the moving average). The function structure is provided below. Feel free to declare any variables you might need as well int MovingAverage (int sample) / YOUR CODE HERE Show transcribed image text Write an Arduino function to compute
OR
OR