A Crystal interface to HIDAPI library.
MIT License
A Crystal interface to HIDAPI library.
It works on Linux and macOS.
Add the dependency to your shard.yml
:
dependencies:
crystal-hidapi:
github: mamantoha/crystal-hidapi
Run shards install
You need to install the development package for hidapi
brew install hidapi
pacman -S hidapi
apt install libhidapi-dev
require "crystal-hidapi"
Explore the following examples:
crystal ./lib/crystal_lib/src/main.cr src/hidapi/lib_hidapi.cr.in > src/hidapi/lib_hidapi.cr
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)