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
classProgram:
def__init__(self, text_program):
"""Converts pioasm text to encoded instruction bytes"""
... # all of old 'assemble()' is hereself.assembled=array.array("H", assembled)
self.sideset_count=sideset_countself.sideset_enable=sideset_enable# automatic loop target values, etcdefmake_state_machine(self, ...):
importrp2pio# defer import so module can be used on std pythonreturnrp2pio.StateMachine(..., sideset_enable=self.sideset_enable, ...)
defassemble(text_program):
returnProgram(text_program).assembled