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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for sx1509_gpio_expander-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69149e354097c362de8d47dbf22bd456dc5f48388aafa31e5e6549327351e363 |
|
MD5 | 16703f5dffa4cb8eb40c1d80ba90051a |
|
BLAKE2b-256 | 50cfec8ac22884894a093bde8fb27c268482e2443f505d8102ff084a51a44079 |
Close
Hashes for sx1509_gpio_expander-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdc88fa1465284cc4d037d7ff103306c08ec53acc4f687bde1cab400738b736 |
|
MD5 | 1b679fe0bdef0e89b0bd8726727fd8d5 |
|
BLAKE2b-256 | 5125d75d9e880225dfbda1f3c3f72706e131d5bfe8a2dce218f5d7e8586126ee |