{"id":19895334,"url":"https://github.com/razshare/zigberrypi","last_synced_at":"2026-05-11T01:27:01.470Z","repository":{"id":171463617,"uuid":"647853679","full_name":"razshare/zigberrypi","owner":"razshare","description":"Zig library for interacting with raspberrypi's gpio","archived":false,"fork":false,"pushed_at":"2023-06-02T14:08:59.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T00:56:14.734Z","etag":null,"topics":["gpio-pins","raspberry-pi","zig"],"latest_commit_sha":null,"homepage":"https://aquila.red/1/tncrazvan/zigberrypi","language":"Zig","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/razshare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-05-31T16:58:13.000Z","updated_at":"2023-06-01T17:41:33.000Z","dependencies_parsed_at":"2024-05-28T13:28:45.071Z","dependency_job_id":null,"html_url":"https://github.com/razshare/zigberrypi","commit_stats":null,"previous_names":["tncrazvan/zigberrypi","razshare/zigberrypi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fzigberrypi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fzigberrypi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fzigberrypi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fzigberrypi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razshare","download_url":"https://codeload.github.com/razshare/zigberrypi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241322534,"owners_count":19944073,"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-pins","raspberry-pi","zig"],"created_at":"2024-11-12T18:36:26.321Z","updated_at":"2026-05-11T01:26:56.396Z","avatar_url":"https://github.com/razshare.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zigberrypi\nZig library for interacting with raspberrypi's gpio\n\n## How to install\n\n- add dependency\n  ```sh\n  zigmod aq install 1/tncrazvan/zigberrypi\n  ```\n- add a reference for the dependency in `build.zig`\n  ```zig\n  const deps = @import(\"deps.zig\");\n  // ...\n  pub fn build(b: *std.Build) void {\n  // ...\n    deps.addAllTo(exe);\n  // ...\n  }\n  ```\n- import `zigberrypi` in your project with\n   ```zig\n   const gpio = @import(\"zigberrypi\");\n   ```\n\n## Example\n\nBlinking led example\n\n```zig\nconst std = @import(\"std\");\nconst gpio = @import(\"zigberrypi\");\n\nfn sleepForTwoSeconds() void {\n    std.time.sleep(std.time.ns_per_s * 2);\n}\n\npub fn main() !void {\n    var active = false;\n    const pin11 = try gpio.openWritable(gpio.Pin.PIN11);\n    defer pin11.close();\n    while (true) {\n        try pin11.write(if (active) \"1\" else \"0\");\n        active = !active;\n        sleepForTwoSeconds();\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fzigberrypi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazshare%2Fzigberrypi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fzigberrypi/lists"}