Skip to content

Some of the examples go against a recommendation within the API documentation. #79

@Supermath101

Description

@Supermath101

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
"""
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions