Hello,
I have a while loop where I read a counter and get values.
Now I want to add all values to one variable. I think an array won't be good because
the loop can run a long time and an array is limited.
And the end I want to have the sum of all values.
I tried to use shift registers.
But how can I store the value of the first loop-cycle in a variable and on
the second loop-cycle take this stored value and add the new value and so on?
Another problem that is maybe more difficult, is that I need the max and min value
of all values that has been read.
That means I need a variable which stores the current value. Then I have to compare the stored
with the next value and maybe exchange both.
I would be thankful fo
r any hints.
best regards Thomas