Catalog PyPI
PACKAGE EXPLORERView in registry

adafruit-circuitpython-pca9554

PyPI

CircuitPython library for Adafruit PCA9554 GPIO expanders

adafruitblinkacircuitpythonexpandergpiomicropythonpca9554
Versions collected1
Direct dependencies2From release 1.0.9
Last observed20 Oct, 18:54 UTC

README

Version 1.0.9 documentation
Introduction
============


.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pca9554/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/pca9554/en/latest/
    :alt: Documentation Status


.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord


.. image:: https://github.com/adafruit/Adafruit_CircuitPython_PCA9554/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_PCA9554/actions
    :alt: Build Status


.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

CircuitPython library for Adafruit PCA9554 GPIO expanders


Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_
or individual libraries can be installed using
`circup <https://github.com/adafruit/circup>`_.

* Adafruit Qualia ESP32-S3 for TTL RGB-666 Displays

`Purchase one from the Adafruit shop <http://www.adafruit.com/products/5800>`_

Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-pca9554/>`_.
To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-pca9554

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

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-pca9554

To install in a virtual environment in your current project:

.. code-block:: shell

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

Installing to a Connected CircuitPython Device with Circup
==========================================================

Make sure that you have ``circup`` installed in your Python environment.
Install it with the following command if necessary:

.. code-block:: shell

    pip3 install circup

With ``circup`` installed and your CircuitPython device connected use the
following command to install:

.. code-block:: shell

    circup install adafruit_pca9554

Or the following command to update an existing version:

.. code-block:: shell

    circup update

Usage Example
=============

.. code-block:: python

    import time
    import board
    import digitalio
    import adafruit_pca9554

    board.I2C().deinit()
    i2c = board.I2C()
    tft_io_expander = dict(board.TFT_IO_EXPANDER)

    pcf = adafruit_pca9554.PCA9554(i2c, address=tft_io_expander['i2c_address'])
    button_up = pcf.get_pin(board.BTN_UP)
    button_up.switch_to_input(pull=digitalio.Pull.UP)

    while True:
        print(button_up.value)
        time.sleep(0.01)  # debounce

Documentation
=============
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pca9554/en/latest/>`_.

For information on building library documentation, please check out
`this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_PCA9554/blob/HEAD/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

Downloads & popularity

3downloads
1-day window · source-reported counts19 Oct 2026
2914.50
2026-07-22: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-22–2026-07-222026-07-23: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-23–2026-07-232026-07-24: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-24–2026-07-242026-07-25: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-25–2026-07-252026-07-27: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-27–2026-07-272026-07-30: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-07-30–2026-07-302026-08-01: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-02–2026-08-022026-08-03: 7 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-03–2026-08-032026-08-06: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-06–2026-08-062026-08-07: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-07–2026-08-072026-08-09: 8 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-09–2026-08-092026-08-13: 3 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-13–2026-08-132026-08-14: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-14–2026-08-142026-08-16: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-16–2026-08-162026-08-17: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-17–2026-08-172026-08-19: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-19–2026-08-192026-08-20: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-20–2026-08-202026-08-21: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-21–2026-08-212026-08-23: 7 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-23–2026-08-232026-08-24: 29 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-24–2026-08-242026-08-27: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-27–2026-08-272026-08-28: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-28–2026-08-282026-08-31: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-08-31–2026-08-312026-09-01: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-01–2026-09-012026-09-05: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-05–2026-09-052026-09-06: 20 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-06–2026-09-062026-09-07: 9 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-07–2026-09-072026-09-09: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-09–2026-09-092026-09-10: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-10–2026-09-102026-09-12: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-12–2026-09-122026-09-13: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-13–2026-09-132026-09-19: 8 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-19–2026-09-192026-09-20: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-20–2026-09-202026-09-22: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-22–2026-09-222026-09-24: 11 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-24–2026-09-242026-09-25: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-25–2026-09-252026-09-26: 3 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-26–2026-09-262026-09-27: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-27–2026-09-272026-09-28: 10 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-28–2026-09-282026-09-29: 13 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-29–2026-09-292026-09-30: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-09-30–2026-09-302026-10-01: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-01–2026-10-012026-10-02: 4 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-02–2026-10-022026-10-03: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-03–2026-10-032026-10-06: 3 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-06–2026-10-062026-10-07: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-07–2026-10-072026-10-08: 14 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-08–2026-10-082026-10-09: 4 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-09–2026-10-092026-10-10: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-10–2026-10-102026-10-11: 16 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-11–2026-10-112026-10-12: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-12–2026-10-122026-10-13: 11 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-13–2026-10-132026-10-14: 2 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-14–2026-10-142026-10-15: 11 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-15–2026-10-152026-10-16: 1 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-16–2026-10-162026-10-17: 28 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-17–2026-10-172026-10-18: 5 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-18–2026-10-182026-10-19: 3 · observed 2026-10-20T19:46:31.9402516Z · period 2026-10-19–2026-10-19
22 Jul19 Oct

pypistats · 59 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-19 – 2026-10-1932026-10-20T19:46:31.9402516Z
2026-10-18 – 2026-10-1852026-10-20T19:46:31.9402516Z
2026-10-17 – 2026-10-17282026-10-20T19:46:31.9402516Z
2026-10-16 – 2026-10-1612026-10-20T19:46:31.9402516Z
2026-10-15 – 2026-10-15112026-10-20T19:46:31.9402516Z
2026-10-14 – 2026-10-1422026-10-20T19:46:31.9402516Z
2026-10-13 – 2026-10-13112026-10-20T19:46:31.9402516Z
2026-10-12 – 2026-10-1212026-10-20T19:46:31.9402516Z
2026-10-11 – 2026-10-11162026-10-20T19:46:31.9402516Z
2026-10-10 – 2026-10-1052026-10-20T19:46:31.9402516Z
2026-10-09 – 2026-10-0942026-10-20T19:46:31.9402516Z
2026-10-08 – 2026-10-08142026-10-20T19:46:31.9402516Z
2026-10-07 – 2026-10-0712026-10-20T19:46:31.9402516Z
2026-10-06 – 2026-10-0632026-10-20T19:46:31.9402516Z
2026-10-03 – 2026-10-0312026-10-20T19:46:31.9402516Z
2026-10-02 – 2026-10-0242026-10-20T19:46:31.9402516Z
2026-10-01 – 2026-10-0122026-10-20T19:46:31.9402516Z
2026-09-30 – 2026-09-3052026-10-20T19:46:31.9402516Z
2026-09-29 – 2026-09-29132026-10-20T19:46:31.9402516Z
2026-09-28 – 2026-09-28102026-10-20T19:46:31.9402516Z
2026-09-27 – 2026-09-2752026-10-20T19:46:31.9402516Z
2026-09-26 – 2026-09-2632026-10-20T19:46:31.9402516Z
2026-09-25 – 2026-09-2522026-10-20T19:46:31.9402516Z
2026-09-24 – 2026-09-24112026-10-20T19:46:31.9402516Z
2026-09-22 – 2026-09-2222026-10-20T19:46:31.9402516Z
2026-09-20 – 2026-09-2012026-10-20T19:46:31.9402516Z
2026-09-19 – 2026-09-1982026-10-20T19:46:31.9402516Z
2026-09-13 – 2026-09-1312026-10-20T19:46:31.9402516Z
2026-09-12 – 2026-09-1222026-10-20T19:46:31.9402516Z
2026-09-10 – 2026-09-1012026-10-20T19:46:31.9402516Z
2026-09-09 – 2026-09-0912026-10-20T19:46:31.9402516Z
2026-09-07 – 2026-09-0792026-10-20T19:46:31.9402516Z
2026-09-06 – 2026-09-06202026-10-20T19:46:31.9402516Z
2026-09-05 – 2026-09-0522026-10-20T19:46:31.9402516Z
2026-09-01 – 2026-09-0122026-10-20T19:46:31.9402516Z
2026-08-31 – 2026-08-3122026-10-20T19:46:31.9402516Z
2026-08-28 – 2026-08-2812026-10-20T19:46:31.9402516Z
2026-08-27 – 2026-08-2712026-10-20T19:46:31.9402516Z
2026-08-24 – 2026-08-24292026-10-20T19:46:31.9402516Z
2026-08-23 – 2026-08-2372026-10-20T19:46:31.9402516Z
2026-08-21 – 2026-08-2112026-10-20T19:46:31.9402516Z
2026-08-20 – 2026-08-2022026-10-20T19:46:31.9402516Z
2026-08-19 – 2026-08-1922026-10-20T19:46:31.9402516Z
2026-08-17 – 2026-08-1722026-10-20T19:46:31.9402516Z
2026-08-16 – 2026-08-1622026-10-20T19:46:31.9402516Z
2026-08-14 – 2026-08-1452026-10-20T19:46:31.9402516Z
2026-08-13 – 2026-08-1332026-10-20T19:46:31.9402516Z
2026-08-09 – 2026-08-0982026-10-20T19:46:31.9402516Z
2026-08-07 – 2026-08-0722026-10-20T19:46:31.9402516Z
2026-08-06 – 2026-08-0622026-10-20T19:46:31.9402516Z
2026-08-03 – 2026-08-0372026-10-20T19:46:31.9402516Z
2026-08-02 – 2026-08-0212026-10-20T19:46:31.9402516Z
2026-08-01 – 2026-08-0122026-10-20T19:46:31.9402516Z
2026-07-30 – 2026-07-3022026-10-20T19:46:31.9402516Z
2026-07-27 – 2026-07-2722026-10-20T19:46:31.9402516Z
2026-07-25 – 2026-07-2512026-10-20T19:46:31.9402516Z
2026-07-24 – 2026-07-2452026-10-20T19:46:31.9402516Z
2026-07-23 – 2026-07-2322026-10-20T19:46:31.9402516Z
2026-07-22 – 2026-07-2222026-10-20T19:46:31.9402516Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.923 Apr 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
adafruit/adafruit_circuitpython_pca9554

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:54 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:222046db9fa9abb00a9f6ee2efa1e974dbd575d0183a65dcb45a20613474ff63