{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2","id":180111043,"html_url":"https://github.com/utilitydelta-io/dotnet-gpio/pull/2","diff_url":"https://github.com/utilitydelta-io/dotnet-gpio/pull/2.diff","patch_url":"https://github.com/utilitydelta-io/dotnet-gpio/pull/2.patch","issue_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/2","number":2,"state":"open","locked":false,"title":"Add ability to listen for value changes","user":{"login":"ajbeaven","id":657201,"avatar_url":"https://avatars3.githubusercontent.com/u/657201?v=4","gravatar_id":"","url":"https://api.github.com/users/ajbeaven","html_url":"https://github.com/ajbeaven","followers_url":"https://api.github.com/users/ajbeaven/followers","following_url":"https://api.github.com/users/ajbeaven/following{/other_user}","gists_url":"https://api.github.com/users/ajbeaven/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbeaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbeaven/subscriptions","organizations_url":"https://api.github.com/users/ajbeaven/orgs","repos_url":"https://api.github.com/users/ajbeaven/repos","events_url":"https://api.github.com/users/ajbeaven/events{/privacy}","received_events_url":"https://api.github.com/users/ajbeaven/received_events","type":"User","site_admin":false},"body":"It'd be really great to have something that fired an event when the GPIO pin's value changed, then things could subscribe to that event. UWP apps can make use of `Windows.Devices.Gpio.GpioChangeReader` that presumably does just this. This is useful when you need to respond to a button press or something similar.\r\n\r\nCurrently when using this repo you'd need to have a loop that continuously checked for GPIO pin value changes. I figured this would be wildly inefficient. I'm quite new to this sort of programming so forgive me if I'm doing something silly here!","created_at":"2018-04-07T15:39:12Z","updated_at":"2018-04-07T15:39:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2/commits","review_comments_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2/comments","review_comment_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/2/comments","statuses_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/statuses/cf949e213eb8eb45bfc0141915dab1b4abb68b51","head":{"label":"ajbeaven:master","ref":"master","sha":"cf949e213eb8eb45bfc0141915dab1b4abb68b51","user":{"login":"ajbeaven","id":657201,"avatar_url":"https://avatars3.githubusercontent.com/u/657201?v=4","gravatar_id":"","url":"https://api.github.com/users/ajbeaven","html_url":"https://github.com/ajbeaven","followers_url":"https://api.github.com/users/ajbeaven/followers","following_url":"https://api.github.com/users/ajbeaven/following{/other_user}","gists_url":"https://api.github.com/users/ajbeaven/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbeaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbeaven/subscriptions","organizations_url":"https://api.github.com/users/ajbeaven/orgs","repos_url":"https://api.github.com/users/ajbeaven/repos","events_url":"https://api.github.com/users/ajbeaven/events{/privacy}","received_events_url":"https://api.github.com/users/ajbeaven/received_events","type":"User","site_admin":false},"repo":{"id":128530617,"name":"dotnet-gpio","full_name":"ajbeaven/dotnet-gpio","owner":{"login":"ajbeaven","id":657201,"avatar_url":"https://avatars3.githubusercontent.com/u/657201?v=4","gravatar_id":"","url":"https://api.github.com/users/ajbeaven","html_url":"https://github.com/ajbeaven","followers_url":"https://api.github.com/users/ajbeaven/followers","following_url":"https://api.github.com/users/ajbeaven/following{/other_user}","gists_url":"https://api.github.com/users/ajbeaven/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbeaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbeaven/subscriptions","organizations_url":"https://api.github.com/users/ajbeaven/orgs","repos_url":"https://api.github.com/users/ajbeaven/repos","events_url":"https://api.github.com/users/ajbeaven/events{/privacy}","received_events_url":"https://api.github.com/users/ajbeaven/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajbeaven/dotnet-gpio","description":".NET Standard library for working with GPIO on Linux devices","fork":true,"url":"https://api.github.com/repos/ajbeaven/dotnet-gpio","forks_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/forks","keys_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/teams","hooks_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/hooks","issue_events_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/issues/events{/number}","events_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/events","assignees_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/assignees{/user}","branches_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/branches{/branch}","tags_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/tags","blobs_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/statuses/{sha}","languages_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/languages","stargazers_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/stargazers","contributors_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/contributors","subscribers_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/subscribers","subscription_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/subscription","commits_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/contents/{+path}","compare_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/merges","archive_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/downloads","issues_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/issues{/number}","pulls_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/pulls{/number}","milestones_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/milestones{/number}","notifications_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/labels{/name}","releases_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/releases{/id}","deployments_url":"https://api.github.com/repos/ajbeaven/dotnet-gpio/deployments","created_at":"2018-04-07T13:24:57Z","updated_at":"2018-04-07T15:26:52Z","pushed_at":"2018-04-07T15:26:51Z","git_url":"git://github.com/ajbeaven/dotnet-gpio.git","ssh_url":"git@github.com:ajbeaven/dotnet-gpio.git","clone_url":"https://github.com/ajbeaven/dotnet-gpio.git","svn_url":"https://github.com/ajbeaven/dotnet-gpio","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"utilitydelta-io:master","ref":"master","sha":"3b742f35494a42dff0b749e5f6065865d1b8f3d2","user":{"login":"utilitydelta-io","id":34178616,"avatar_url":"https://avatars3.githubusercontent.com/u/34178616?v=4","gravatar_id":"","url":"https://api.github.com/users/utilitydelta-io","html_url":"https://github.com/utilitydelta-io","followers_url":"https://api.github.com/users/utilitydelta-io/followers","following_url":"https://api.github.com/users/utilitydelta-io/following{/other_user}","gists_url":"https://api.github.com/users/utilitydelta-io/gists{/gist_id}","starred_url":"https://api.github.com/users/utilitydelta-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utilitydelta-io/subscriptions","organizations_url":"https://api.github.com/users/utilitydelta-io/orgs","repos_url":"https://api.github.com/users/utilitydelta-io/repos","events_url":"https://api.github.com/users/utilitydelta-io/events{/privacy}","received_events_url":"https://api.github.com/users/utilitydelta-io/received_events","type":"Organization","site_admin":false},"repo":{"id":112029557,"name":"dotnet-gpio","full_name":"utilitydelta-io/dotnet-gpio","owner":{"login":"utilitydelta-io","id":34178616,"avatar_url":"https://avatars3.githubusercontent.com/u/34178616?v=4","gravatar_id":"","url":"https://api.github.com/users/utilitydelta-io","html_url":"https://github.com/utilitydelta-io","followers_url":"https://api.github.com/users/utilitydelta-io/followers","following_url":"https://api.github.com/users/utilitydelta-io/following{/other_user}","gists_url":"https://api.github.com/users/utilitydelta-io/gists{/gist_id}","starred_url":"https://api.github.com/users/utilitydelta-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utilitydelta-io/subscriptions","organizations_url":"https://api.github.com/users/utilitydelta-io/orgs","repos_url":"https://api.github.com/users/utilitydelta-io/repos","events_url":"https://api.github.com/users/utilitydelta-io/events{/privacy}","received_events_url":"https://api.github.com/users/utilitydelta-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/utilitydelta-io/dotnet-gpio","description":".NET Standard library for working with GPIO on Linux devices","fork":false,"url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio","forks_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/forks","keys_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/teams","hooks_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/hooks","issue_events_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/events{/number}","events_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/events","assignees_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/assignees{/user}","branches_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/branches{/branch}","tags_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/tags","blobs_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/git/refs{/sha}","trees_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/statuses/{sha}","languages_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/languages","stargazers_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/stargazers","contributors_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/contributors","subscribers_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/subscribers","subscription_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/subscription","commits_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/commits{/sha}","git_commits_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/git/commits{/sha}","comments_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/comments{/number}","issue_comment_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/comments{/number}","contents_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/contents/{+path}","compare_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/merges","archive_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/downloads","issues_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues{/number}","pulls_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls{/number}","milestones_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/milestones{/number}","notifications_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/labels{/name}","releases_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/releases{/id}","deployments_url":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/deployments","created_at":"2017-11-25T19:37:24Z","updated_at":"2017-12-02T03:49:22Z","pushed_at":"2017-12-15T13:33:39Z","git_url":"git://github.com/utilitydelta-io/dotnet-gpio.git","ssh_url":"git@github.com:utilitydelta-io/dotnet-gpio.git","clone_url":"https://github.com/utilitydelta-io/dotnet-gpio.git","svn_url":"https://github.com/utilitydelta-io/dotnet-gpio","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2"},"html":{"href":"https://github.com/utilitydelta-io/dotnet-gpio/pull/2"},"issue":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/2"},"comments":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/utilitydelta-io/dotnet-gpio/statuses/cf949e213eb8eb45bfc0141915dab1b4abb68b51"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":115,"deletions":0,"changed_files":6}}
{"actor":{"display_login":"ajbeaven"}}