The second argument to read()
is an offset that specifies where in the array you want the samples to be stored. Since you're passing 0
you'll get the samples at the beginning of the array (i.e. at lin[0..7]
).
The oldest sample will be stored at the lowest address (lin[0]
), and the latest sample at the highest address (lin[7]
).