https://github.com/headblockhead/pico-pca9555
Library for the P/TCA9555 16-bit I2C-bus and SMBus I/O port with interrupt.
https://github.com/headblockhead/pico-pca9555
c-library pca9555 pico tca9555
Last synced: 24 days ago
JSON representation
Library for the P/TCA9555 16-bit I2C-bus and SMBus I/O port with interrupt.
- Host: GitHub
- URL: https://github.com/headblockhead/pico-pca9555
- Owner: headblockhead
- Created: 2024-06-20T22:45:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T19:30:06.000Z (over 1 year ago)
- Last Synced: 2025-01-15T07:57:53.251Z (over 1 year ago)
- Topics: c-library, pca9555, pico, tca9555
- Language: C
- Homepage: https://www.nxp.com/docs/en/data-sheet/PCA9555.pdf
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pico_pca9555
 [](https://xcfile.dev)
A C library for controlling the PCA9555/TCA9555 I2C IO expander with the Raspberry Pi Pico.
## Development
This library uses [nix](https://nixos.org).
To develop, run the nix shell using `nix develop`. This library can also be build using `nix build`.
## Tasks
### build
Directory: ./build
Build a static archive library (`.a`).
```bash
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
```
### build-dbg
Directory: ./build
Build the library with debug information.
```bash
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j4
cp compile_commands.json ../ # Copies the autocomplete information for ccls.
```
### clean
Cleans the build directory for a fresh build.
```bash
rm -rf ./build
mkdir build
```