Skip to main content

This module provides the possibility to connect to the first parallel port from Python.

Project description

(Version 0.4)

Purpose

Connect to the first parallel port from Python.

Usage

You need to import PyParport. This function provides a read() and a write() method. Both take the needed register as argument: d(ata), c(ontrol) or s(tatus). The write method also take the value to write as decimal number.

Example:

from pyparport import PyParport

# To show the data of the data register:
PyParport.data.read()

# To write a 255 to the data register:
PyPaport.data.write(255)

PyParport class implements the following registers: - data - control - status

Each register brings a read and a write method.

License

PyParport is available under the terms of the GPLv3.

Disclaimer

This software comes without any warranty. You use it on your own risk. It may contain bugs, viruses or harm your hardware in another way. The developer is not responsible for any consequences which may occur because of using the software.

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

pyparport-0.4.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file pyparport-0.4.tar.gz.

File metadata

  • Download URL: pyparport-0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyparport-0.4.tar.gz
Algorithm Hash digest
SHA256 e890875e74b8f17c723ce7a6db1db54335de29633ba689000d5f8bc057ad3fa9
MD5 0be10a81e812666e10860090d18fe46d
BLAKE2b-256 f24581688cef32870d0ba682a3bbf552a969a2653f323e7395bb01ccb838b7b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page