The recommendation is embedded within the codebase here:
|
In new code, prefer to use the `Program` class so that the extra arguments |
|
such as the details about side-set pins can be easily passsed to the |
|
``StateMachine`` constructor.""" |
It's eventually rendered as documentation here: https://docs.circuitpython.org/projects/pioasm/en/latest/api.html#adafruit_pioasm.assemble
Most examples embedded within this repo use the deprecated approach, but I did see at least one that uses the recommended approach:
|
_program = adafruit_pioasm.Program( |
|
""" |
|
out pins, 14 ; set the pins to their new state |
|
""" |
|
) |
The recommendation is embedded within the codebase here:
Adafruit_CircuitPython_PIOASM/adafruit_pioasm.py
Lines 556 to 558 in cf1dd1e
It's eventually rendered as documentation here: https://docs.circuitpython.org/projects/pioasm/en/latest/api.html#adafruit_pioasm.assemble
Most examples embedded within this repo use the deprecated approach, but I did see at least one that uses the recommended approach:
Adafruit_CircuitPython_PIOASM/examples/pioasm_7seg.py
Lines 48 to 52 in cf1dd1e