GPIO access using sysfs interface in Crystal.
Add this to your application's shard.yml
:
dependencies:
gpio:
github: petoem/gpio.cr
require "gpio"
GPIO.pin_mode 0, GPIO::INPUT
puts GPIO.read_pin 0
TODO: Write usage instructions here
TODO: Write development instructions here
- Fork it ( https://github.com/petoem/gpio.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
- petoem Michael Petö - creator, maintainer