{"id":15675129,"url":"https://github.com/tenderlove/uchip","last_synced_at":"2025-05-06T22:21:51.111Z","repository":{"id":59158468,"uuid":"287862528","full_name":"tenderlove/uchip","owner":"tenderlove","description":"Ruby library for interacting with MCP2221 and MCP2221a","archived":false,"fork":false,"pushed_at":"2021-12-14T04:10:10.000Z","size":38,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T03:32:06.713Z","etag":null,"topics":["mcp2221","mcp2221a","microchip","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenderlove.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}},"created_at":"2020-08-16T02:55:52.000Z","updated_at":"2023-03-26T12:18:03.000Z","dependencies_parsed_at":"2022-09-13T17:50:53.829Z","dependency_job_id":null,"html_url":"https://github.com/tenderlove/uchip","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/tenderlove%2Fuchip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fuchip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fuchip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenderlove%2Fuchip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenderlove","download_url":"https://codeload.github.com/tenderlove/uchip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777357,"owners_count":21802589,"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":["mcp2221","mcp2221a","microchip","ruby"],"created_at":"2024-10-03T15:57:06.885Z","updated_at":"2025-05-06T22:21:51.089Z","avatar_url":"https://github.com/tenderlove.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UChip\n\nThis is a library for controlling Microchip Chips.  Specifically the MCP2221 and\nMCP2221A.\n\n## Examples\n\nSee the `examples` folder for more examples, but here is an example of using\nGP0 as a GPIO:\n\n\n```ruby\nrequire \"uchip/mcp2221\"\n\ndef hit_bell pin\n  pin.value = 0\n  pin.value = 1\n  sleep 0.009\n  pin.value = 0\nend\n\n# Find the first connected chip\nchip = UChip::MCP2221.first || raise(\"Couldn't find the chip!\")\n\npin = chip.pin 0\npin.output!\n\nloop do\n  hit_bell pin\n  sleep 2\nend\n```\n\n## Problems\n\nRight now this library doesn't support DAC or ADC, but it should be trivial to\nimplement.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fuchip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenderlove%2Fuchip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenderlove%2Fuchip/lists"}