adafruit-circuitpython-matrixportal


Nameadafruit-circuitpython-matrixportal JSON
Version 3.1.13 PyPI version JSON
download
home_page
SummaryCircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings
upload_time2023-12-09 17:45:31
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit matrixportal matrix rgb led feather featherwing shieldbreakout hardware micropython circuitpython
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-matrixportal/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/matrixportal/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_MatrixPortal/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal/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

CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite,
and Adafruit RGB Matrix FeatherWings


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>`_.

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

.. code:: python

    import time
    import board
    import terminalio
    from adafruit_matrixportal.matrixportal import MatrixPortal

    # --- Display setup ---
    matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)

    # Create a new label with the color and text selected
    matrixportal.add_text(
        text_font=terminalio.FONT,
        text_position=(0, (matrixportal.graphics.display.height // 2) - 1),
        scrolling=True,
    )

    SCROLL_DELAY = 0.03

    contents = [
        { 'text': 'THIS IS RED',  'color': '#cf2727'},
        { 'text': 'THIS IS BLUE', 'color': '#0846e4'},
    ]

    while True:
        for content in contents:
            matrixportal.set_text(content['text'])

            # Set the text color
            matrixportal.set_text_color(content['color'])

            # Scroll it
            matrixportal.scroll_text(SCROLL_DELAY)

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

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/matrixportal/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_MatrixPortal/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "adafruit-circuitpython-matrixportal",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,matrixportal,matrix,rgb,led,feather,featherwing,shieldbreakout,hardware,micropython,circuitpython",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/40/1c/70b409da2a9486f6a52a4029565462a129b4b7f48292caa85cd4704faaff/adafruit-circuitpython-matrixportal-3.1.13.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-matrixportal/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/matrixportal/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_MatrixPortal/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal/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\nCircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite,\nand Adafruit RGB Matrix FeatherWings\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\nUsage Example\n=============\n\n.. code:: python\n\n    import time\n    import board\n    import terminalio\n    from adafruit_matrixportal.matrixportal import MatrixPortal\n\n    # --- Display setup ---\n    matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)\n\n    # Create a new label with the color and text selected\n    matrixportal.add_text(\n        text_font=terminalio.FONT,\n        text_position=(0, (matrixportal.graphics.display.height // 2) - 1),\n        scrolling=True,\n    )\n\n    SCROLL_DELAY = 0.03\n\n    contents = [\n        { 'text': 'THIS IS RED',  'color': '#cf2727'},\n        { 'text': 'THIS IS BLUE', 'color': '#0846e4'},\n    ]\n\n    while True:\n        for content in contents:\n            matrixportal.set_text(content['text'])\n\n            # Set the text color\n            matrixportal.set_text_color(content['color'])\n\n            # Scroll it\n            matrixportal.scroll_text(SCROLL_DELAY)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/matrixportal/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_MatrixPortal/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython helper for Adafruit MatrixPortal M4, Adafruit RGB Matrix Shield + Metro M4 Airlift Lite, and Adafruit RGB Matrix FeatherWings",
    "version": "3.1.13",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MatrixPortal"
    },
    "split_keywords": [
        "adafruit",
        "matrixportal",
        "matrix",
        "rgb",
        "led",
        "feather",
        "featherwing",
        "shieldbreakout",
        "hardware",
        "micropython",
        "circuitpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "023ea4258f083d8aad3d7fe3f163dba5b11e5c8811c0f7515d41c575c3ae351d",
                "md5": "84a1737735c5682ca46ab17d0ad42cc2",
                "sha256": "f1690a69f1759000f471c7103f099799ae220cbf5460ccb97611c1886c8fe0f2"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_matrixportal-3.1.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "84a1737735c5682ca46ab17d0ad42cc2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11894,
            "upload_time": "2023-12-09T17:45:30",
            "upload_time_iso_8601": "2023-12-09T17:45:30.945629Z",
            "url": "https://files.pythonhosted.org/packages/02/3e/a4258f083d8aad3d7fe3f163dba5b11e5c8811c0f7515d41c575c3ae351d/adafruit_circuitpython_matrixportal-3.1.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "401c70b409da2a9486f6a52a4029565462a129b4b7f48292caa85cd4704faaff",
                "md5": "b5f65dc3cda1e90dbb01647b48dc993d",
                "sha256": "33bb24d3c4c152b51d00967e13d6c7ab50be87c01808b1b125c326881f4c4424"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-matrixportal-3.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "b5f65dc3cda1e90dbb01647b48dc993d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 30490,
            "upload_time": "2023-12-09T17:45:31",
            "upload_time_iso_8601": "2023-12-09T17:45:31.869710Z",
            "url": "https://files.pythonhosted.org/packages/40/1c/70b409da2a9486f6a52a4029565462a129b4b7f48292caa85cd4704faaff/adafruit-circuitpython-matrixportal-3.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 17:45:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_MatrixPortal",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-matrixportal"
}
        
Elapsed time: 0.14875s