adafruit-circuitpython-pioasm


Nameadafruit-circuitpython-pioasm JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummarySimple assembler to convert pioasm to bytes
upload_time2024-04-29 19:14:10
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython pioasm rp2040
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pioasm/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/pioasm/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/actions
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

Simple assembler to convert pioasm to bytes


Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.

Installing from PyPI
=====================

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-pioasm/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-pioasm

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-pioasm

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-pioasm

Usage Example
=============

.. code-block:: python

    import time
    import rp2pio
    import board
    import adafruit_pioasm

    squarewave = """
    .program squarewave
        set pins 1 [1]  ; Drive pin high and then delay for one cycle
        set pins 0      ; Drive pin low
    """

    assembled = adafruit_pioasm.assemble(squarewave)

    sm = rp2pio.StateMachine(
        assembled,
        frequency=2000,
        init=adafruit_pioasm.assemble("set pindirs 1"),
        first_set_pin=board.LED,
    )
    print("real frequency", sm.frequency)

    time.sleep(120)

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pioasm/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/blob/master/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-pioasm",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, pioasm, rp2040",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/c2/3a/af5bfa22068ef5b78723554c2c513803532f1bdfc53110606e40e4f56c3c/adafruit_circuitpython_pioasm-1.0.1.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pioasm/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/pioasm/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/actions\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nSimple assembler to convert pioasm to bytes\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.\n\nInstalling from PyPI\n=====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-pioasm/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-pioasm\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-pioasm\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name && cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-pioasm\n\nUsage Example\n=============\n\n.. code-block:: python\n\n    import time\n    import rp2pio\n    import board\n    import adafruit_pioasm\n\n    squarewave = \"\"\"\n    .program squarewave\n        set pins 1 [1]  ; Drive pin high and then delay for one cycle\n        set pins 0      ; Drive pin low\n    \"\"\"\n\n    assembled = adafruit_pioasm.assemble(squarewave)\n\n    sm = rp2pio.StateMachine(\n        assembled,\n        frequency=2000,\n        init=adafruit_pioasm.assemble(\"set pindirs 1\"),\n        first_set_pin=board.LED,\n    )\n    print(\"real frequency\", sm.frequency)\n\n    time.sleep(120)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pioasm/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/blob/master/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple assembler to convert pioasm to bytes",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_PIOASM"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " pioasm",
        " rp2040"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb11122f36d9e2379a56910ac5d5888e9c43e91242df4b1b80ed425719b78fc9",
                "md5": "d377c781466e53b75fb909aea6ba554a",
                "sha256": "8a6f28c6c27913f64ef51672e670487f079f77b4f4f46b30d1884ffcf4ba6d22"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_pioasm-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d377c781466e53b75fb909aea6ba554a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6840,
            "upload_time": "2024-04-29T19:14:08",
            "upload_time_iso_8601": "2024-04-29T19:14:08.590569Z",
            "url": "https://files.pythonhosted.org/packages/fb/11/122f36d9e2379a56910ac5d5888e9c43e91242df4b1b80ed425719b78fc9/adafruit_circuitpython_pioasm-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c23aaf5bfa22068ef5b78723554c2c513803532f1bdfc53110606e40e4f56c3c",
                "md5": "d8060c164bd8fe1d63c7fdff6bb3ab0e",
                "sha256": "f7bea266efbfe09a65abbe126ed4ea567c5a4caa8af9062a121c1e2b1a05dd04"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_pioasm-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d8060c164bd8fe1d63c7fdff6bb3ab0e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42454,
            "upload_time": "2024-04-29T19:14:10",
            "upload_time_iso_8601": "2024-04-29T19:14:10.167469Z",
            "url": "https://files.pythonhosted.org/packages/c2/3a/af5bfa22068ef5b78723554c2c513803532f1bdfc53110606e40e4f56c3c/adafruit_circuitpython_pioasm-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 19:14:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_PIOASM",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-pioasm"
}
        
Elapsed time: 0.25891s