{"id":15691975,"url":"https://github.com/tenderlove/myhidapi","last_synced_at":"2025-06-28T05:36:10.925Z","repository":{"id":56884938,"uuid":"171041744","full_name":"tenderlove/myhidapi","owner":"tenderlove","description":"A wrapper around hidapi for Ruby","archived":false,"fork":false,"pushed_at":"2022-01-13T03:25:14.000Z","size":25,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:42:28.507Z","etag":null,"topics":["hidapi","ruby","usb"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenderlove.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-16T19:15:23.000Z","updated_at":"2022-01-13T03:24:52.000Z","dependencies_parsed_at":"2022-08-20T14:31:15.509Z","dependency_job_id":null,"html_url":"https://github.com/tenderlove/myhidapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fmyhidapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fmyhidapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fmyhidapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fmyhidapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenderlove","download_url":"https://codeload.github.com/tenderlove/myhidapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973616,"owners_count":21834105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hidapi","ruby","usb"],"created_at":"2024-10-03T18:27:02.036Z","updated_at":"2025-05-07T23:42:37.619Z","avatar_url":"https://github.com/tenderlove.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyHIDAPI\n\n* https://github.com/tenderlove/myhidapi\n\n## DESCRIPTION:\n\nThis is a small wrapper around HIDAPI.  I couldn't get other HIDAPI wrappers to\nwork, so I wrote this one.  I'm using it to communicate with my keyboard, so\nit really only supports enough of the HIDAPI to do that.\n\n## FEATURES/PROBLEMS:\n\n* Incomplete\n* No tests\n* Seems to work (for me)\n\n## SYNOPSIS:\n\n```ruby\n devices = MyHIDAPI.enumerate 0x0, 0x0\n dev = devices.find { |dev| dev.product_string == \"ErgoDox EZ\" }\n\n handle = dev.open\n\n while !handle\n   p \"retry\"\n   handle = dev.open\n end\n\n p handle\n\n buf = [0x0, 0x3, 35]\n loop do\n   break if handle.write buf.pack('C*')\n end\n puts \"done writing\"\n\n buf = handle.read_timeout 1, 500\n p buf\n ```\n\n## REQUIREMENTS:\n\nThis depends on libhidapi.\n\n## INSTALL:\n\n* Install hidapi.  On MacOS that is `brew install hidapi`\n\n## LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2019 Aaron Patterson\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fmyhidapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenderlove%2Fmyhidapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fmyhidapi/lists"}