Skip to main content

A package to control the SX1509 GPIO expander

Project description

SX1509 GPIO Expander Package

This package provides a Python interface for controlling the SX1509 GPIO expander.

Installation

pip install sx1509-gpio-expander

Usage

To use the package, import the SX1509 class from the sx1509 module:

from sx1509_gpio_expander import SX1509
import board

# Set up I2C
i2c = board.I2C() 
# Initialize the SX1509
ioExpander = SX1509.SX1509(i2c, 0x3E)

# Use the expander
ioExpander.pinMode(0, ioExpander.OUTPUT)
ioExpander.digitalWrite(0, ioExpander.HIGH)

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

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

sx1509_gpio_expander-0.1.2.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sx1509_gpio_expander-0.1.2-py2.py3-none-any.whl (24.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sx1509_gpio_expander-0.1.2.tar.gz.

File metadata

  • Download URL: sx1509_gpio_expander-0.1.2.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.0

File hashes

Hashes for sx1509_gpio_expander-0.1.2.tar.gz
Algorithm Hash digest
SHA256 69149e354097c362de8d47dbf22bd456dc5f48388aafa31e5e6549327351e363
MD5 16703f5dffa4cb8eb40c1d80ba90051a
BLAKE2b-256 50cfec8ac22884894a093bde8fb27c268482e2443f505d8102ff084a51a44079

See more details on using hashes here.

File details

Details for the file sx1509_gpio_expander-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sx1509_gpio_expander-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1bdc88fa1465284cc4d037d7ff103306c08ec53acc4f687bde1cab400738b736
MD5 1b679fe0bdef0e89b0bd8726727fd8d5
BLAKE2b-256 5125d75d9e880225dfbda1f3c3f72706e131d5bfe8a2dce218f5d7e8586126ee

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