g.mccormick
Lifetime Supporting Member
So every 200ms, you want to store the analog value to an array element?
Setup a 200ms timer.
When the timer expires, increment a counter.
Do a move/copy/math whatever, to set Array[ counter ] = analog input.
When the array is full, reset the counter.
Setup a 200ms timer.
When the timer expires, increment a counter.
Do a move/copy/math whatever, to set Array[ counter ] = analog input.
When the array is full, reset the counter.