Skip to main content

A module to interface with VFD displays via serial communication.

Project description

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 VfdDisplay class 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!

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

vfd_display-1.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

vfd_display-1.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file vfd_display-1.1.2.tar.gz.

File metadata

  • Download URL: vfd_display-1.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.2

File hashes

Hashes for vfd_display-1.1.2.tar.gz
Algorithm Hash digest
SHA256 3895fb5e1460204d0ce9c716c0f86e1626856112289961c7ce0d69e1bbebdd90
MD5 1c317171ef2a95106eb1ccc4fc31c97f
BLAKE2b-256 eddbe1bd4042a57db8cfeda964498d1f3cd013932c3b1224247cdddfa003b67b

See more details on using hashes here.

File details

Details for the file vfd_display-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: vfd_display-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.2

File hashes

Hashes for vfd_display-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc5a23dff9137111a2b1ed934a7e0eb2cc75355b4fe86e7a683a7e60750bf8f
MD5 b272d0823cee09b010d1524470101e4b
BLAKE2b-256 76523d0e43141660e9312116db203f4e3040ac43e3fefbce8a495ea019a7c589

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