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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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