Arguably, in user code, the list of pins to sample will typically be known and fixed at compile-time.
However, when wrapping this into a library (Mozzi; for the purpose of providing a cross-platform analog read mechanism), it will be very helpful to have a way to adjust the pins to sample after construction.
Arguably, in user code, the list of pins to sample will typically be known and fixed at compile-time.
However, when wrapping this into a library (Mozzi; for the purpose of providing a cross-platform analog read mechanism), it will be very helpful to have a way to adjust the pins to sample after construction.