Is there a reason why PWM or OutputCompare does not include an overload for taking an array and a RepeatCount. So you can repeat a given array N number of times. That way you don’t have to pass a huge array and repeat your pattern inside it. Or am I missing something?
For example, say I want to PWM control Step pin on two stepper controllers and send something like 20 rotations. At 200 steps per rotation, the arrays would be way too large and just a waste or space anyway. If I could set a repeat count, I could pass a two element array and the internals would just repeat it any number of times.