A helper library for displaying lines of text on a microcontroller with a built-in display, or externally connected display.
Project description
Introduction
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.
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
Release history Release notifications | RSS feed
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.13.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-simple-text-display-1.2.13.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d72750b69d9a30bd467c99a97c37ce044bf66b35b79466ddd6a2e08255c23d5e |
|
MD5 | 1ca57fe49a53f7df3b0744f51673fa37 |
|
BLAKE2b-256 | 467b6dd48c03f1fc9a35d745b039ba4174342dd08046f4678088302fd45fcda9 |
File details
Details for the file adafruit_circuitpython_simple_text_display-1.2.13-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_simple_text_display-1.2.13-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495b47e77a62245eeccdaa935a4ff7f595d0292edad475c8c52982740ab3be44 |
|
MD5 | 5760fade5d12ac10152c1b2b2f8e3615 |
|
BLAKE2b-256 | 074c50bfdb50731e17ff0a4738016063fcc6c0561d3254517bd649b30d97aa97 |