You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the pio_kwargs provided by adafruit_pioasm.Program() and used by rp2pio.StateMachine() needs to be renamed for pioemu.emulate().
Could pioemu be updated to use same kwargs?
For example in my test application, following modifications is needed to be done for pioemu.emulate():
program.pio_kwargs['side_set_count'] = program.pio_kwargs['sideset_pin_count']
program.pio_kwargs['wrap_top'] = program.pio_kwargs['wrap']
del program.pio_kwargs['sideset_enable']
del program.pio_kwargs['wrap']
del program.pio_kwargs['sideset_pin_count']
The text was updated successfully, but these errors were encountered:
Thanks for the good suggestion - I can certainly see the advantage of aligning the names with CircuitPython (or MicroPython). Please note however, that some changes may still be required even if the names are aligned. For example, CircuitPython's wait_for_txstall is unlikely to be applicable so it would still need to be removed/commented-out if used. Would that match your expectations?
NB: If anybody else is reading this and has an opinion then please feel free to share it by adding a comment.
Some of the
pio_kwargs
provided byadafruit_pioasm.Program()
and used byrp2pio.StateMachine()
needs to be renamed forpioemu.emulate()
.Could pioemu be updated to use same
kwargs
?For example in my test application, following modifications is needed to be done for
pioemu.emulate()
:The text was updated successfully, but these errors were encountered: