I have a question about syntax in the code snippet below:
What is meaning of using the "%" percent sign in Arduino code? I have seen this in other code but I have not been able to discover the use for this or maybe I am just not looking in the correct places.
Thanks in advance for any assistance.
Jim
Snippet:
// Removes noise from sensor data
int average(int rawIn, int *averageArray) {
long total = 0;
static int i;
i = (i + 1) % 16;
averageArray = rawIn;
for (int j = 0; j < 16; j++) total += averageArray[j];*