Skip to main content

A helper library for displaying lines of text on a microcontroller with a built-in display, or externally connected display.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using 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.

Usage Example

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

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.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file adafruit_circuitpython_simple_text_display-1.2.16.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_simple_text_display-1.2.16.tar.gz
Algorithm Hash digest
SHA256 647664a5f2c28a4f8e0d1e4e15f055a3841a71c3b32a20d2af1ce8c4a4e1bed7
MD5 2e76b800b367cedf6728c20b03c46921
BLAKE2b-256 569e07bd0947787a5411a89c58fa3b300e3c2b44ef59ead9345dc919be60953f

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_simple_text_display-1.2.16-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_simple_text_display-1.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc2517d221e112552bde4e13cb741f8d6a14b0f19daf3b2077aa56721eb5e65
MD5 6d2f12d9f0116c456f8bc0650def6b64
BLAKE2b-256 436f1ec88ecc1de0062004c9b38c7436d47f2b86cc3e5c9e250bb354542668d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page