Closed jepler closed 2 years ago
This could also help when adding support for wrap / wrap_target, the values would be members of Program and passed to StateMachine via Program.make_state_machine
.
The other thing I was considering was a function that produces the appropriate kwargs.
def get_kwargs(pio_source):
...
sm = rp2pio.StateMachine(pin=board.FOO, **get_kwargs(src))
Sketch: