gpiod.cr
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
Repository
gpiod.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 4 months ago
- January 5, 2024
License
MIT License
Links
Synced at
Wed, 08 May 2024 23:23:07 GMT
Languages