pigpio-cr
Version, currently master branch1 version
- master branchlatestNov 13, 2022
github.com/SleepingInsomniac/pigpio-cr
Crystal bindings to pigpio for GPIO control on raspberry pi
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
pigpio-cr:
github: SleepingInsomniac/pigpio-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.6.0- License
- MIT
- Author
- Alex Clink
Dependencies
This version declares no dependencies.
README
pigpio-cr
Crystal bindings to pigpio - https://github.com/joan2937/pigpio
Installation
-
Add the dependency to your
shard.yml:dependencies: pigpio-cr: github: SleepingInsomniac/pigpio-cr -
Run
shards install
Usage
require "pigpio"
if status = LibPigpio.Initialize < 0
# pigpio initialisation failed.
puts "LibPigpio initialization failed: #{status}"
exit
end
LibPigpio.SetMode(2, LibPigpio::PI_OUTPUT)
60.times do
LibPigpio.Write(2, 1)
sleep 0.5
LibPigpio.Write(2, 0)
sleep 0.5
end
Contributing
- Fork it (https://github.com/your-github-user/pigpio-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
- Nov 13, 2022
- Crystal
1.6.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/SleepingInsomniac/pigpio-cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1