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.15.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-simple-text-display-1.2.15.tar.gz
Algorithm Hash digest
SHA256 7db060eabeb22f2c37ee1e06637db355e933bcc4a20b7df45b5cb8767d9c8ed5
MD5 0658c3e574879c1fe147bc5f128c5442
BLAKE2b-256 0b21655e0dda4a0e738de78c19a69f73da7972f1e9518ee6a6f8df7132901a15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_simple_text_display-1.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 9532f6ad8bda1a4a4f269b63b31335c0f71fd735c7a14a95ba4f7a70ee9c7d27
MD5 b12e661a12dc7e476b78895f96a53827
BLAKE2b-256 5e402e721e39d171d45145dc0221733e4904f289eba5947e51bc28d9862cd878

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