{"id":16711464,"url":"https://github.com/j-jzk/rbwiringop","last_synced_at":"2025-03-15T03:32:02.779Z","repository":{"id":132872670,"uuid":"158716224","full_name":"j-jzk/RbWiringOP","owner":"j-jzk","description":"Ruby library for WiringOP","archived":false,"fork":false,"pushed_at":"2019-11-29T21:40:46.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T19:21:24.367Z","etag":null,"topics":["gpio","gpio-pins","orange-pi","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j-jzk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-22T15:09:28.000Z","updated_at":"2023-09-08T17:47:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bf9b422-dc2d-4ea8-a1f6-6961ce694efd","html_url":"https://github.com/j-jzk/RbWiringOP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-jzk%2FRbWiringOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-jzk%2FRbWiringOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-jzk%2FRbWiringOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-jzk%2FRbWiringOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-jzk","download_url":"https://codeload.github.com/j-jzk/RbWiringOP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"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":["gpio","gpio-pins","orange-pi","ruby"],"created_at":"2024-10-12T20:12:05.717Z","updated_at":"2025-03-15T03:32:02.773Z","avatar_url":"https://github.com/j-jzk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RbWiringOP\nRuby library for easier use of [zhaolei's WiringOP](https://github.com/zhaolei/WiringOP). \nIt simplifies calling the shell commands and adds a nice Ruby interface.\n\n## Installation\nFirst download and install the WiringOP.\n```\ngit clone https://github.com/zhaolei/WiringOP.git -b h3 \ncd WiringOP\nchmod +x ./build\nsudo ./build\n```\n*(from WiringOP readme)*\n\nThen clone this repository:\n```\ngit clone https://github.com/j-jzk/RbWiringOP.git\n```\n\n## Usage\n```ruby\nrequire './RbWiringOP/wiring.rb'\n\n# reset the gpio (not required)\nWiringOP.reset\n\nmy_pin = WiringOP::Pin.new :pin =\u003e 0, :direction =\u003e :out  # the library uses WiringPi pin numbering\n\n# do something with the pin\nmy_pin.set_hi\nmy_pin.set_lo\n\n# an input pin\nanother_pin = WiringOP::Pin.new :pin =\u003e 4, :direction =\u003e :in\n\n# check the value\nif another_pin.is_hi\n    # do something\nend\n# or\nif another_pin.is_lo\n    # do something\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-jzk%2Frbwiringop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-jzk%2Frbwiringop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-jzk%2Frbwiringop/lists"}