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.

Contributing

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

Documentation

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

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

File details

Details for the file adafruit-circuitpython-simple-text-display-1.2.1.tar.gz.

File metadata

  • Download URL: adafruit-circuitpython-simple-text-display-1.2.1.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for adafruit-circuitpython-simple-text-display-1.2.1.tar.gz
Algorithm Hash digest
SHA256 15cf8d08d03c043eed6cb881c25c4022f4afe16b4863b03477d2322e974b3a7d
MD5 33233102697d1dbef038c7e53ec40054
BLAKE2b-256 07a0f2fbfbf796e523b4395b1763a360ed5bfc240ca67134fbd61f79e5602f2a

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