gpiod
Version, currently master branch1 version
- master branchlatestJan 5, 2024
github.com/SleepingInsomniac/gpiod.cr
Crystal bindings to libgpiod for general purpose input/output control
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
gpiod:
github: SleepingInsomniac/gpiod.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.10.1- License
- MIT
- Author
- Alex Clink
Dependencies
This version declares no dependencies.
README
GPIOD
Crystal bindings to LibGPIOD v2.1
Installation
Install version 2.1 of LibGPIOD:
wget -O - https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-2.1.tar.gz | sudo tar xvz -C /opt
sudo ./autogen.sh --enable-tools=yes --prefix=/usr/local
sudo make
sudo make install
In your crystal project
- Add the dependency to your shard.yml file
dependencies:
gpiod:
github: sleepinginsomniac/gpiod.cr
- Install dependencies
shards install
- Require the lib in your source
require "gpiod"
Usage
See examples
Generate documentation with crystal docs
Contributing
- Fork it (https://github.com/SleepingInsomniac/gpiod.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Alex Clink - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jan 5, 2024
- Crystal
>= 1.10.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/SleepingInsomniac/gpiod.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1