keyleds
Version, currently 1.0.01 version
- 1.0.0latestApr 9, 2021
github.com/nickbclifford/keyleds.cr
A Crystal interface to keyleds
1 stars
0 dependents
License: GPLv3
Installation
# Add this to your shard.yml
dependencies:
keyleds:
github: nickbclifford/keyleds.cr
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
1.0.0- License
- GPLv3
- Author
- Nick Clifford
Dependencies
This version declares no dependencies.
README
keyleds.cr
A Crystal interface to the libkeyleds library.
License
As a derived work of keyleds, these bindings are licensed under the GNU GPLv3.
Installation
-
Add the dependency to your
shard.yml:dependencies: keyleds: github: nickbclifford/keyleds.cr -
Run
shards install
Usage
require "keyleds"
APP_ID = 1_u8
Keyleds::Device.open("/dev/hidraw1", APP_ID) do |device|
puts device.name
device.set_led_block(:logo, red: 0, blue: 255, green: 0)
device.commit_leds
end
Contributing
- Fork it (https://github.com/nickbclifford/keyleds.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
- Nick Clifford - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Apr 9, 2021
- Commit
4b8b579b8b68- Crystal
1.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nickbclifford/keyleds.cr
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1