Closed Speedy2k closed 2 years ago
Thanks for this good question. It should be possible, need to think about the exact syntax.
Oops wrong button (phones are not ideal to navigate github)
Added an example - https://github.com/RobTillaart/RunningMedian/tree/master/examples/RunningMedian_array There might be more ways to do it.
(updated your question with code tags so it looks better)
initializing could also be done
RunningMedian RM[4] = { RunningMedian(5),RunningMedian(5),RunningMedian(5),RunningMedian(5) };
If you use an array of pointers you can initiialize the array in setup()
See - https://github.com/RobTillaart/RunningMedian/tree/master/examples/RunningMedian_array_pointer
Thanx a lot it is awesome!! I will have to use the pointer version!! I was aware of the version without the pointer but if we use a external variable for the array length it is not useable!!
Good to hear it works,
AS the problem is solved I close the issue
Hi, i need to create an array of running median to access them in a for loop, is it possible? Like this:
Is this something possible ??
Thanx a lot!