Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Black

Python library for AW9523 GPIO expander and LED driver

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-aw9523

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-aw9523

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-aw9523

Usage Example

import board
import digitalio
import adafruit_aw9523

i2c = board.I2C()
aw = adafruit_aw9523.AW9523(i2c)

led_pin = aw.get_pin(0)  # LED on AW9523 io 0
button_pin = aw.get_pin(1)  # Button on AW io 1

# LED is an output, initialize to high
led_pin.switch_to_output(value=True)
# Button is an input, note internal pull-ups are not supported!
button_pin.direction = digitalio.Direction.INPUT

while True:
    # LED mirrors button pin
    led_pin.value = button_pin.value

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Metadata

Release files for adafruit-circuitpython-aw9523 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-aw9523 1.1.2
File Size Uploaded Provenance Actions
adafruit-circuitpython-aw9523-1.1.2.tar.gz 29.7 kB Without provenance Details for adafruit-circuitpython-aw9523-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-aw9523 1.1.2
File Interpreter ABI Platform Actions
adafruit_circuitpython_aw9523-1.1.2-py3-none-any.whl Python 3 none any Details for adafruit_circuitpython_aw9523-1.1.2-py3-none-any.whl

Total release size: 36.3 kB

Release files / adafruit-circuitpython-aw9523-1.1.2.tar.gz

Download URL adafruit-circuitpython-aw9523-1.1.2.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3a4a101461ba7c86033e115c238ef82641ab3b0784e25bebb1151242524b55f9
BLAKE2b-256 checksum
How to use checksums
78b8a19bcb8641e39f978b03d5c7077e704bebf537ab1cd2f744f6f05778b5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / adafruit_circuitpython_aw9523-1.1.2-py3-none-any.whl

Download URL adafruit_circuitpython_aw9523-1.1.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb5e26341fc98c5d8e81ad95190063c6052e1f8cc3b3747423996e56a24d373c
BLAKE2b-256 checksum
How to use checksums
73edfc52e294b292e98a38149b351f2ef7bf5f74864420a81cae6f05f2448875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for adafruit-circuitpython-aw9523 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page