{"id":16610908,"url":"https://github.com/tim-koehler/netcoregpiolibrary","last_synced_at":"2025-08-23T12:32:17.022Z","repository":{"id":118839549,"uuid":"138076984","full_name":"tim-koehler/NetCoreGpioLibrary","owner":"tim-koehler","description":"Small Library to simplify the work with GPIOs on the Raspberry Pi in your .NetCore application","archived":false,"fork":false,"pushed_at":"2018-06-20T19:39:32.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T18:29:19.091Z","etag":null,"topics":["dotnet-core","dotnetcore","gpio","gpio-library","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/tim-koehler.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-20T19:29:32.000Z","updated_at":"2021-08-04T06:11:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"53de4d2c-47af-4384-8791-de8bd9e83d18","html_url":"https://github.com/tim-koehler/NetCoreGpioLibrary","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tim-koehler/NetCoreGpioLibrary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-koehler%2FNetCoreGpioLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-koehler%2FNetCoreGpioLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-koehler%2FNetCoreGpioLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-koehler%2FNetCoreGpioLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-koehler","download_url":"https://codeload.github.com/tim-koehler/NetCoreGpioLibrary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-koehler%2FNetCoreGpioLibrary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271747023,"owners_count":24813604,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dotnet-core","dotnetcore","gpio","gpio-library","raspberry-pi"],"created_at":"2024-10-12T01:33:44.840Z","updated_at":"2025-08-23T12:32:16.946Z","avatar_url":"https://github.com/tim-koehler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NetCoreGpioLibrary for Raspberry Pi\r\n\r\nThis is a small Library to simplify the work with GPIOs on the Raspberry Pi in your .NetCore application.\r\n\r\n## Prerequisites\r\n\r\nYou should already have a working .NetCore environment on your Raspberry set up.\r\n\r\n## Installation\r\n\r\n1. [Download](https://github.com/RaZorfalkon/NetCoreGpioLibrary/releases) the dll file\r\n2. Add the library to your existing Project\r\n\r\n\r\n## Use the library\r\n\r\n### Setup GPIO ports\r\n\r\nBefore using a GPIO port you have to configure it:\r\n\r\n```c#\r\nGpio.SetUpPort(Port.PORT10, Direction.OUT);  // Write to port\r\nGpio.SetUpPort(Port.PORD27, Direction.IN);   // Read from port\r\n```\r\n\r\nIf your input signal is inverted you can simply invert that:\r\n\r\n```c#\r\nGpio.SetUpPort(Port.PORD27, Direction.IN, true);   // Read from inverted port\r\n```\r\n\r\n### Write/Read from GPIOs\r\n\r\nTo write a signal to a port:\r\n```c#\r\nGpio.SetPortState(Port.PORT10, State.HIGH);  \r\n```\r\n\r\nTo read a signal on a port:\r\n```c#\r\nGpio.GetPortState(Port.PORT27);  \r\n```\r\n\r\n### Example\r\n\r\n```c#\r\nGpio.SetUpPort(Port.PORT10, Directon.OUT);\r\n\r\nwhile(true)\r\n{\r\n    Gpio.SetPortState(Port.PORT10, State.HIGH);\r\n    Thread.Sleep(250);\r\n    Gpio.SetPortState(Port.PORT10, State.LOW);\r\n    Thread.Sleep(250);\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-koehler%2Fnetcoregpiolibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-koehler%2Fnetcoregpiolibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-koehler%2Fnetcoregpiolibrary/lists"}