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: Ruff

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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_simple_text_display-1.2.22.tar.gz
Algorithm Hash digest
SHA256 643fbb96cb7dc32844e97e4fd97448f77ab857da3fe99b8c6a9132459bbcf5db
MD5 7e90c86244b3c5f51bc23c50ee2e278f
BLAKE2b-256 d6d88b15b58f631f7dc0db79434e5af64c8fbbb69cacfe63cba675d71250414e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_simple_text_display-1.2.22-py3-none-any.whl
Algorithm Hash digest
SHA256 248d09015c15a3c61a75d82b505dd6326a4d3f13137aa29d3bd62349f1f3e4a7
MD5 885d8d152cd584b097e7f8f74eed8c7d
BLAKE2b-256 fd45cf3eeaf02328bff12ff8d76b0cf13e76245f7e7e1de5def11020b19523bb

See more details on using hashes here.

Supported by

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