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.
Metadata
Release files for adafruit-circuitpython-simple-text-display 1.2.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adafruit_circuitpython_simple_text_display-1.2.23.tar.gz | 24.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adafruit_circuitpython_simple_text_display-1.2.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.6 kB
Release files / adafruit_circuitpython_simple_text_display-1.2.23.tar.gz
| Download URL | adafruit_circuitpython_simple_text_display-1.2.23.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00b8084c3f2b489f81d62b4813ac09eae7b408ebdfdd5a5f1085226489b5db2c
|
|
BLAKE2b-256 checksum How to use checksums |
0b4b57475a8ddf34a7b74505acf8577d747165b7d33f461a254f411c57d06979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / adafruit_circuitpython_simple_text_display-1.2.23-py3-none-any.whl
| Download URL | adafruit_circuitpython_simple_text_display-1.2.23-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
157d3842d8f2eee5a288646875daee40ce58a0e199c6a8117477fb210ff10ece
|
|
BLAKE2b-256 checksum How to use checksums |
bb7ada8984e4e5b7c6e6b2ebfeb6cb747661e07b9bf363431079c2d917414be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|