A Crystal interface to keyleds
https://github.com/nickbclifford/keyleds.cr.git
A Crystal interface to the libkeyleds library.
As a derived work of keyleds, these bindings are licensed under the GNU GPLv3.
shard.yml:dependencies:
keyleds:
github: nickbclifford/keyleds.cr
shards installrequire "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
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)