{"id":16506883,"url":"https://github.com/cannikin/gpio_pure","last_synced_at":"2025-09-07T03:34:32.216Z","repository":{"id":6217422,"uuid":"7448714","full_name":"cannikin/gpio_pure","owner":"cannikin","description":"A Ruby library for talking to the GPIO pins on a Raspberry Pi using the native /sys/class/gpio functionality built into the Raspian OS","archived":false,"fork":false,"pushed_at":"2013-01-04T23:41:42.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T14:16:17.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/cannikin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-01-04T23:00:40.000Z","updated_at":"2014-01-01T07:51:11.000Z","dependencies_parsed_at":"2022-07-26T01:02:20.458Z","dependency_job_id":null,"html_url":"https://github.com/cannikin/gpio_pure","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/cannikin%2Fgpio_pure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannikin%2Fgpio_pure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannikin%2Fgpio_pure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannikin%2Fgpio_pure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cannikin","download_url":"https://codeload.github.com/cannikin/gpio_pure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241445060,"owners_count":19963918,"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":[],"created_at":"2024-10-11T15:23:12.207Z","updated_at":"2025-03-02T01:22:35.071Z","avatar_url":"https://github.com/cannikin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPIO Pure\n\nA Ruby library for talking to the GPIO pins on a Raspberry Pi using the native\n`/sys/class/gpio` functionality built into the Raspian OS.\n\n## A note on pins\n\nPin numbering on the Raspberry Pi can be confusing. You will see references to\nthree different numbering schemes:\n\n1. The physical pins on the Raspberry Pi, numbered 1 - 26\n2. The GPIO pin number that the on-board Broadcom chip understands (jumps around\n   from 17 to 31 back to 0...these are all over the place)\n3. The wiringPi numbering scheme, numbered from 0 - 16. wiringPi is a popular\n   C library that gives you access to the GPIO pins in a more programmatic way.\n   The author, [Gordon](https://projects.drogon.net/raspberry-pi/wiringpi/) \n   did what the Arduino does which is re-number the pins in numerical order\n   regardless of what the actual on-board chip calls them internally. The\n   wiringPi numbering scheme is what gpio_pure uses. For more info, see:\n   https://projects.drogon.net/raspberry-pi/wiringpi/\n   \n## Usage\n\n    require 'gpio'\n\n    GPIO.write 0, 1  # Set the output of pin 0 high\n    GPIO.write 0, 0  # Set the output of pin 1 low\n    GPIO.read 1      # Read the current value of pin 1\n    GPIO.clear 1     # Optional, removes the pin's virtual file from the OS\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannikin%2Fgpio_pure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcannikin%2Fgpio_pure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannikin%2Fgpio_pure/lists"}