Skip to main content

TI's PCF8574 python driver

Project description

python driver for PCF8574

Overview

Texas Instruments PCF8574 is an 8-bit I/O expander based on I2C/SMBus. This package allows users to use PCF8574 GPIOs like any standard arduino GPIOs. Provides standard arduino like functions pinMode, digitalWrite, digitalRead etc.

Installation

Package: pip3 install python-PCF8574

Dependencies: pip3 install -r requirements.txt

Usage Examples

examples/basicExample.py : A basic workflow for reading and writing a GPIO examples/multiDeviceExample.py : multiple PCF8574 devices examples/threadSafeExample.py : Not implemented

Example Code

For those who just want to get started fast:

<TODO>

Development and Contributibg Instructions

The current code base is compatible with python3. Pull requests for new features, bug fixes, and suggestions are welcome! Please create an issue for discussion before working on a substantial change.

License

MIT

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

python-PCF8574-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file python-PCF8574-1.0.0.tar.gz.

File metadata

  • Download URL: python-PCF8574-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.9

File hashes

Hashes for python-PCF8574-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e5c536994a8d76e295d2064dcf0110d4219e39479374dda126e942b1293df55
MD5 2768390755c83af741fa1424a915e724
BLAKE2b-256 7dd6db686c673015b14164d10adbe7a854b6323b35c1cda754293bd49c56a4ec

See more details on using hashes here.

Supported by

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