Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T20:41:15.000Z (6 months ago)
- Last Synced: 2024-07-13T21:45:28.335Z (6 months ago)
- Topics: c-library, pca9555, pico, tca9555
- Language: C
- Homepage: https://www.nxp.com/docs/en/data-sheet/PCA9555.pdf
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pico_pca9555
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: ./buildBuild a static archive library (`.a`).
```bash
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
```### Build-debug
Directory: ./buildBuilds the library with debug build type.
```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
```### Init-submodules
Fetches submodules for use in the project.
```bash
git submodule update --init --recursive
```