https://github.com/tijn/gpiod
Crystal bindings for the new Linux kernel GPIO user space interface (/dev/gpiochip*)
https://github.com/tijn/gpiod
Last synced: 8 months ago
JSON representation
Crystal bindings for the new Linux kernel GPIO user space interface (/dev/gpiochip*)
- Host: GitHub
- URL: https://github.com/tijn/gpiod
- Owner: tijn
- License: gpl-3.0
- Created: 2021-12-29T21:04:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-30T22:16:39.000Z (over 4 years ago)
- Last Synced: 2025-02-22T19:14:07.383Z (over 1 year ago)
- Language: Crystal
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpiod
The sysfs interface (`/sys/class/gpio`) has been deprecated for a while so this library implements bindings for the chardev interface that replaces it.
You can read more about it [here](https://embeddedbits.org/new-linux-kernel-gpio-user-space-interface/).
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
gpiod:
github: tijn/gpiod
```
2. Run `shards install`
## Usage
```crystal
require "gpiod"
```
TODO: Write usage instructions here
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Tijn Schuurmans](https://github.com/tijn) - creator and maintainer