{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/comments/187457437","pull_request_review_id":119244088,"id":187457437,"diff_hunk":"@@ -0,0 +1,36 @@\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License.\n+Import-Module Microsoft.PowerShell.IoT\n+\n+[int]$DeviceAddress = 0x60\n+######### Configuration Register and Value #########\n+[int]$ConfigurationRegisterAddress = 0x00\n+[int]$ConfigurationRegisterValue = 0x1B\n+\n+######### Data Registers and value #########\n+[int[]]$DataRegisterAddress = 0x04 ..0x08\n+[int[]]$values = 0x12,0x08,0x08,0x08,0x12\n+######### Brightness Register and value #########\n+[int]$BrightnessRegisterAddress = 0x0D\n+[int]$BrightnessRegisterValue = 0x08 #Lowest intensity\n+\n+######### Get the device and set the Configuration Register\n+$Device = Get-I2CDevice -Id $DeviceAddress -FriendlyName phat\n+Set-I2CRegister -Device $Device -Register $ConfigurationRegisterAddress -Data $ConfigurationRegisterValue\n+\n+######## Lightning Effect #####","path":"Examples/Microsoft.PowerShell.IoT.Scroll_pHat/Microsoft.PowerShell.IoT.SadJoey.ps1","position":21,"original_position":21,"commit_id":"9bc2e8b200674b3bede98e35b0977edac081d4d9","original_commit_id":"9bc2e8b200674b3bede98e35b0977edac081d4d9","user":{"login":"tylerl0706","id":2644648,"avatar_url":"https://avatars2.githubusercontent.com/u/2644648?v=4","gravatar_id":"","url":"https://api.github.com/users/tylerl0706","html_url":"https://github.com/tylerl0706","followers_url":"https://api.github.com/users/tylerl0706/followers","following_url":"https://api.github.com/users/tylerl0706/following{/other_user}","gists_url":"https://api.github.com/users/tylerl0706/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerl0706/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerl0706/subscriptions","organizations_url":"https://api.github.com/users/tylerl0706/orgs","repos_url":"https://api.github.com/users/tylerl0706/repos","events_url":"https://api.github.com/users/tylerl0706/events{/privacy}","received_events_url":"https://api.github.com/users/tylerl0706/received_events","type":"User","site_admin":false},"body":"Missed a \"Lightning\" change :) ","created_at":"2018-05-10T20:54:58Z","updated_at":"2018-05-10T20:56:53Z","html_url":"https://github.com/PowerShell/PowerShell-IoT/pull/41#discussion_r187457437","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/comments/187457437"},"html":{"href":"https://github.com/PowerShell/PowerShell-IoT/pull/41#discussion_r187457437"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41","id":187053640,"html_url":"https://github.com/PowerShell/PowerShell-IoT/pull/41","diff_url":"https://github.com/PowerShell/PowerShell-IoT/pull/41.diff","patch_url":"https://github.com/PowerShell/PowerShell-IoT/pull/41.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/41","number":41,"state":"open","locked":false,"title":"Add example for Scroll pHat","user":{"login":"DanielSSilva","id":6862119,"avatar_url":"https://avatars3.githubusercontent.com/u/6862119?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielSSilva","html_url":"https://github.com/DanielSSilva","followers_url":"https://api.github.com/users/DanielSSilva/followers","following_url":"https://api.github.com/users/DanielSSilva/following{/other_user}","gists_url":"https://api.github.com/users/DanielSSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSSilva/subscriptions","organizations_url":"https://api.github.com/users/DanielSSilva/orgs","repos_url":"https://api.github.com/users/DanielSSilva/repos","events_url":"https://api.github.com/users/DanielSSilva/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSSilva/received_events","type":"User","site_admin":false},"body":"This pull requests adds an example that displays the legendary \"Sad Joey\" on the Scroll pHat, and also a small \"explanation\" on how this is achieved","created_at":"2018-05-09T22:10:13Z","updated_at":"2018-05-10T20:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67cb8c296ec9616498cbac2fdedb420499fd83d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/41/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/statuses/9bc2e8b200674b3bede98e35b0977edac081d4d9","head":{"label":"DanielSSilva:master","ref":"master","sha":"9bc2e8b200674b3bede98e35b0977edac081d4d9","user":{"login":"DanielSSilva","id":6862119,"avatar_url":"https://avatars3.githubusercontent.com/u/6862119?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielSSilva","html_url":"https://github.com/DanielSSilva","followers_url":"https://api.github.com/users/DanielSSilva/followers","following_url":"https://api.github.com/users/DanielSSilva/following{/other_user}","gists_url":"https://api.github.com/users/DanielSSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSSilva/subscriptions","organizations_url":"https://api.github.com/users/DanielSSilva/orgs","repos_url":"https://api.github.com/users/DanielSSilva/repos","events_url":"https://api.github.com/users/DanielSSilva/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSSilva/received_events","type":"User","site_admin":false},"repo":{"id":129976044,"name":"PowerShell-IoT","full_name":"DanielSSilva/PowerShell-IoT","owner":{"login":"DanielSSilva","id":6862119,"avatar_url":"https://avatars3.githubusercontent.com/u/6862119?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielSSilva","html_url":"https://github.com/DanielSSilva","followers_url":"https://api.github.com/users/DanielSSilva/followers","following_url":"https://api.github.com/users/DanielSSilva/following{/other_user}","gists_url":"https://api.github.com/users/DanielSSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSSilva/subscriptions","organizations_url":"https://api.github.com/users/DanielSSilva/orgs","repos_url":"https://api.github.com/users/DanielSSilva/repos","events_url":"https://api.github.com/users/DanielSSilva/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSSilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanielSSilva/PowerShell-IoT","description":"Interact with I2C, SPI & GPIO devices using PowerShell Core!","fork":true,"url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT","forks_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/forks","keys_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/teams","hooks_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/hooks","issue_events_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/issues/events{/number}","events_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/events","assignees_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/assignees{/user}","branches_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/branches{/branch}","tags_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/tags","blobs_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/statuses/{sha}","languages_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/languages","stargazers_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/stargazers","contributors_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/contributors","subscribers_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/subscribers","subscription_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/subscription","commits_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/contents/{+path}","compare_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/merges","archive_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/downloads","issues_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/issues{/number}","pulls_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/pulls{/number}","milestones_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/milestones{/number}","notifications_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/labels{/name}","releases_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/releases{/id}","deployments_url":"https://api.github.com/repos/DanielSSilva/PowerShell-IoT/deployments","created_at":"2018-04-17T23:22:56Z","updated_at":"2018-05-10T20:40:39Z","pushed_at":"2018-05-10T20:40:37Z","git_url":"git://github.com/DanielSSilva/PowerShell-IoT.git","ssh_url":"git@github.com:DanielSSilva/PowerShell-IoT.git","clone_url":"https://github.com/DanielSSilva/PowerShell-IoT.git","svn_url":"https://github.com/DanielSSilva/PowerShell-IoT","homepage":"https://www.powershellgallery.com/packages/Microsoft.PowerShell.IoT","size":98,"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":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"22e29ec670d5f6ba81a5971a25bd43c0d5622dd1","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":109427757,"name":"PowerShell-IoT","full_name":"PowerShell/PowerShell-IoT","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShell-IoT","description":"Interact with I2C, SPI & GPIO devices using PowerShell Core!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShell-IoT","forks_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShell-IoT/deployments","created_at":"2017-11-03T18:06:00Z","updated_at":"2018-05-10T04:12:00Z","pushed_at":"2018-05-10T20:40:38Z","git_url":"git://github.com/PowerShell/PowerShell-IoT.git","ssh_url":"git@github.com:PowerShell/PowerShell-IoT.git","clone_url":"https://github.com/PowerShell/PowerShell-IoT.git","svn_url":"https://github.com/PowerShell/PowerShell-IoT","homepage":"https://www.powershellgallery.com/packages/Microsoft.PowerShell.IoT","size":93,"stargazers_count":60,"watchers_count":60,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":8,"open_issues":12,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41"},"html":{"href":"https://github.com/PowerShell/PowerShell-IoT/pull/41"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/41"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell-IoT/statuses/9bc2e8b200674b3bede98e35b0977edac081d4d9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tylerl0706"}}