{"id":15043683,"url":"https://github.com/trstringer/pipin","last_synced_at":"2025-04-14T23:11:59.240Z","repository":{"id":57324856,"uuid":"59784498","full_name":"trstringer/pipin","owner":"trstringer","description":":strawberry: Raspberry Pi pin controller CLI","archived":false,"fork":false,"pushed_at":"2017-01-10T11:52:18.000Z","size":71,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T23:11:39.609Z","etag":null,"topics":["raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/trstringer.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":"2016-05-26T21:30:34.000Z","updated_at":"2023-09-08T17:10:51.000Z","dependencies_parsed_at":"2022-08-31T19:52:04.628Z","dependency_job_id":null,"html_url":"https://github.com/trstringer/pipin","commit_stats":null,"previous_names":["tstringer/pipin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpipin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpipin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpipin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpipin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trstringer","download_url":"https://codeload.github.com/trstringer/pipin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975328,"owners_count":21192210,"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":["raspberry-pi"],"created_at":"2024-09-24T20:49:25.963Z","updated_at":"2025-04-14T23:11:59.221Z","avatar_url":"https://github.com/trstringer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi GPIO Pin Controller and Schematic CLI\n\n**Set GPIO pins high or low, read them, and show pin schematics**\n\n*Why?  Because there should be an easy way to toggle GPIO pins, and read them... and show pin schematics, because they're impossible to remember*\n\n## Installation\n\n```\nnpm install -g pipin\n```\n\n## Usage\n\n```\n  Usage: pipin [options]\n\n  Options:\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -l, --list                 list all models for pin schematics\n    -m, --model [model]        show pins for model\n    -r, --res                  display resistor band chart\n    -t, --target [target]      raspberry Pi to connect for pin operations\n    -u, --username [username]  username for SSH connection\n    -g, --gpio [gpio]          GPIO pin to read or toggle\n    -s, --state [state]        state (1 or 0) to set GPIO pin (1 = HIGH, 0 = LOW)\n```\n\n### List available models\n\n```\n$ pipin --list\n```\n\n### Show specific model\n\n```\n$ pipin --model rpi2\n```\n\n#### Sample output\n\n![sample output](/images/pipin-schematic-screenshot-01.png)\n\n### Set a GPIO pin high/low\n\n```\npipin -t \u003chostname-or-ip\u003e -u \u003cusername\u003e -g \u003cgpio-pin-num\u003e -s \u003c1-or-0\u003e\n```\n\n#### Example\n\n*Set the GPIO 2 pin to high on a host named `raspberrypi` using user `pi`*\n\n```\npipin -t raspberrypi -u pi -g 2 -s 1\n```\n\n### Read the state of a GPIO pin\n\n```\npipin -t \u003chostname-or-ip\u003e -u \u003cusername\u003e -g \u003cgpio-pin-num\u003e -s \u003c1-or-0\u003e\n```\n\n#### Example\n\n*Get the value/state of GPIO 2 pin on host `raspberrypi` using user `pi`*\n\n```\npipin -t raspberrypi -u pi -g 2\n```\n\n### Show the resistor conversion chart\n\n```\npipin -r\n```\n\n![sample output](/images/pipin-res-chart-screenshot-01.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Fpipin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrstringer%2Fpipin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Fpipin/lists"}