adafruit-circuitpython-simple-text-display


Nameadafruit-circuitpython-simple-text-display JSON
Version 1.2.16 PyPI version JSON
download
home_pageNone
SummaryA helper library for displaying lines of text on a microcontroller with a built-in display, or externally connected display.
upload_time2024-10-07 22:35:04
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython simple-text-display displayio
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-display-text
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============


.. image:: https://readthedocs.org/projects/adafruit-circuitpython-simple-text-display/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/simple-text-display/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_Simple_Text_Display/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_Simple_Text_Display/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

A helper library for displaying lines of text on a display using displayio.


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

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

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>`_
or individual libraries can be installed using
`circup <https://github.com/adafruit/circup>`_.

This library works with any microcontroller with a built in display, or a microcontroller with an
external display connected.

`Purchase one from the Adafruit shop. <http://www.adafruit.com>`_


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

This example takes the microcontroller CPU temperature in C and F, and displays it on the display
under the heading "Temperature Data!".

.. code-block:: python

    import microcontroller
    from adafruit_simple_text_display import SimpleTextDisplay

    temperature_data = SimpleTextDisplay(title="Temperature Data!", title_scale=2)

    while True:
        temperature_data[0].text = "Temperature: {:.2f} degrees C".format(
            microcontroller.cpu.temperature
        )
        temperature_data[1].text = "Temperature: {:.2f} degrees F".format(
            (microcontroller.cpu.temperature * (9 / 5) + 32)
        )
        temperature_data.show()

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

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-simple-text-display",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, simple-text-display, displayio",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/56/9e/07bd0947787a5411a89c58fa3b300e3c2b44ef59ead9345dc919be60953f/adafruit_circuitpython_simple_text_display-1.2.16.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-simple-text-display/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/simple-text-display/en/latest/\n    :alt: Documentation Status\n\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\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_Simple_Text_Display/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_Simple_Text_Display/actions\n    :alt: Build Status\n\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\nA helper library for displaying lines of text on a display using displayio.\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Adafruit CircuitPython DisplayText <https://github.com/adafruit/Adafruit_CircuitPython_Display_Text>`_\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>`_\nor individual libraries can be installed using\n`circup <https://github.com/adafruit/circup>`_.\n\nThis library works with any microcontroller with a built in display, or a microcontroller with an\nexternal display connected.\n\n`Purchase one from the Adafruit shop. <http://www.adafruit.com>`_\n\n\nUsage Example\n=============\n\nThis example takes the microcontroller CPU temperature in C and F, and displays it on the display\nunder the heading \"Temperature Data!\".\n\n.. code-block:: python\n\n    import microcontroller\n    from adafruit_simple_text_display import SimpleTextDisplay\n\n    temperature_data = SimpleTextDisplay(title=\"Temperature Data!\", title_scale=2)\n\n    while True:\n        temperature_data[0].text = \"Temperature: {:.2f} degrees C\".format(\n            microcontroller.cpu.temperature\n        )\n        temperature_data[1].text = \"Temperature: {:.2f} degrees F\".format(\n            (microcontroller.cpu.temperature * (9 / 5) + 32)\n        )\n        temperature_data.show()\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/simple-text-display/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_Simple_Text_Display/blob/HEAD/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A helper library for displaying lines of text on a microcontroller with a built-in display, or externally connected display.",
    "version": "1.2.16",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_Simple_Text_Display.git"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " simple-text-display",
        " displayio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "436f1ec88ecc1de0062004c9b38c7436d47f2b86cc3e5c9e250bb354542668d1",
                "md5": "6d2f12d9f0116c456f8bc0650def6b64",
                "sha256": "0bc2517d221e112552bde4e13cb741f8d6a14b0f19daf3b2077aa56721eb5e65"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_simple_text_display-1.2.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d2f12d9f0116c456f8bc0650def6b64",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6539,
            "upload_time": "2024-10-07T22:35:03",
            "upload_time_iso_8601": "2024-10-07T22:35:03.216439Z",
            "url": "https://files.pythonhosted.org/packages/43/6f/1ec88ecc1de0062004c9b38c7436d47f2b86cc3e5c9e250bb354542668d1/adafruit_circuitpython_simple_text_display-1.2.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "569e07bd0947787a5411a89c58fa3b300e3c2b44ef59ead9345dc919be60953f",
                "md5": "2e76b800b367cedf6728c20b03c46921",
                "sha256": "647664a5f2c28a4f8e0d1e4e15f055a3841a71c3b32a20d2af1ce8c4a4e1bed7"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_simple_text_display-1.2.16.tar.gz",
            "has_sig": false,
            "md5_digest": "2e76b800b367cedf6728c20b03c46921",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27339,
            "upload_time": "2024-10-07T22:35:04",
            "upload_time_iso_8601": "2024-10-07T22:35:04.633231Z",
            "url": "https://files.pythonhosted.org/packages/56/9e/07bd0947787a5411a89c58fa3b300e3c2b44ef59ead9345dc919be60953f/adafruit_circuitpython_simple_text_display-1.2.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 22:35:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_Simple_Text_Display",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-display-text",
            "specs": []
        }
    ],
    "lcname": "adafruit-circuitpython-simple-text-display"
}
        
Elapsed time: 0.33477s