VFD Display
A Python module to interface with VFD (Vacuum Fluorescent Display) displays via serial communication.
Table of Contents
Installation
You can install the vfd-display module using pip. Ensure you have Python 3.6 or higher installed.
pip install vfd-display
Usage
Here’s a simple example of how to use the VfdDisplay class to write messages to a VFD display:
import configparser
from vfd_display import VfdDisplay
# Load configuration
config = configparser.ConfigParser()
config.read('config.ini')
# Initialize the VFD display
vfd = VfdDisplay(port=config["Settings"]["Port"], enabled=config["Settings"].getboolean("Status_VFD"))
# Clear the screen
vfd.clear_screen()
# Write messages to the display
vfd.write_line("MACHINE ARRETEE", line=1, column=1)
vfd.write_line("ESSAYEZ + TARD", line=2, column=1)
# Close the connection when done
vfd.close()
Configuration
You can use a configuration file (e.g., config.ini) to specify parameters such as the serial port and status of the VFD. Here’s an example of what the configuration file could look like:
ini
Copier le code
[Settings]
Port = /dev/ttyUSB0
Status_VFD = True
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements, bug fixes, or feature requests.
License
This project is licensed under the MIT License. See the #LICENSE file for details.
Key Sections Explained
- Installation: Provides users with instructions on how to install the module using
pip. - Usage: Shows a basic example of how to use the
VfdDisplayclass and read configuration settings from a file. - Configuration: Suggests how to manage settings using a configuration file, improving usability.
- Contributing: Encourages collaboration and provides a pathway for users to contribute to the project.
- License: Clarifies the licensing terms for the project.
Next Steps
- Add any additional sections relevant to your project, such as "Features," "Limitations," or "Support."
- Update the configuration file example to reflect any specific options your module requires.
- Ensure the license section reflects your chosen license by providing a link to the actual license file in your repository.
Feel free to customize this template to better suit your project's specifics or personal preferences!
Metadata
Release files for vfd-display 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vfd_display-1.1.2.tar.gz | 3.5 kB | Without provenance | Details for vfd_display-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vfd_display-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for vfd_display-1.1.2-py3-none-any.whl |
Total release size: 6.9 kB
Release files / vfd_display-1.1.2.tar.gz
| Download URL | vfd_display-1.1.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3895fb5e1460204d0ce9c716c0f86e1626856112289961c7ce0d69e1bbebdd90
|
|
BLAKE2b-256 checksum How to use checksums |
eddbe1bd4042a57db8cfeda964498d1f3cd013932c3b1224247cdddfa003b67b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.2
|
Release files / vfd_display-1.1.2-py3-none-any.whl
| Download URL | vfd_display-1.1.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fc5a23dff9137111a2b1ed934a7e0eb2cc75355b4fe86e7a683a7e60750bf8f
|
|
BLAKE2b-256 checksum How to use checksums |
76523d0e43141660e9312116db203f4e3040ac43e3fefbce8a495ea019a7c589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.2
|
Security for vfd-display 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.