{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/dhylands/python_lcd/pulls/9","id":106933538,"html_url":"https://github.com/dhylands/python_lcd/pull/9","diff_url":"https://github.com/dhylands/python_lcd/pull/9.diff","patch_url":"https://github.com/dhylands/python_lcd/pull/9.patch","issue_url":"https://api.github.com/repos/dhylands/python_lcd/issues/9","number":9,"state":"open","locked":false,"title":"Custom characters","user":{"login":"mcauser","id":1038959,"avatar_url":"https://avatars.githubusercontent.com/u/1038959?v=3","gravatar_id":"","url":"https://api.github.com/users/mcauser","html_url":"https://github.com/mcauser","followers_url":"https://api.github.com/users/mcauser/followers","following_url":"https://api.github.com/users/mcauser/following{/other_user}","gists_url":"https://api.github.com/users/mcauser/gists{/gist_id}","starred_url":"https://api.github.com/users/mcauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcauser/subscriptions","organizations_url":"https://api.github.com/users/mcauser/orgs","repos_url":"https://api.github.com/users/mcauser/repos","events_url":"https://api.github.com/users/mcauser/events{/privacy}","received_events_url":"https://api.github.com/users/mcauser/received_events","type":"User","site_admin":false},"body":"Custom characters are 5x8 pixels and can be created using a 8 byte bytearray, where the first element is the top row and last element is the bottom row of pixels. Least significant bit is the right edge pixel and only 5 bits of significance are used.\r\n\r\n```\r\nHappy Face (where .=0, #=1)\r\n..... == 0b00000000 == 0x00\r\n.#.#. == 0b00001010 == 0x0A\r\n..... == 0b00000000 == 0x00\r\n..#.. == 0b00000100 == 0x04\r\n..... == 0b00000000 == 0x00\r\n#...# == 0b00010001 == 0x11\r\n.###. == 0b00001110 == 0x0E\r\n..... == 0b00000000 == 0x00\r\n\r\nlcd.custom_char(0, bytearray([0x00,0x0A,0x00,0x04,0x00,0x11,0x0E,0x00]))\r\nlcd.putcustom(0)\r\nlcd.putchar(chr(0))\r\nlcd.putchar(b'\\x00')\r\n```","created_at":"2017-02-20T03:14:59Z","updated_at":"2017-02-20T03:14:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dhylands/python_lcd/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dhylands/python_lcd/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dhylands/python_lcd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dhylands/python_lcd/issues/9/comments","statuses_url":"https://api.github.com/repos/dhylands/python_lcd/statuses/15e621efe100952cb6dd4294d451c0d941b8fe79","head":{"label":"mcauser:custom_chars","ref":"custom_chars","sha":"15e621efe100952cb6dd4294d451c0d941b8fe79","user":{"login":"mcauser","id":1038959,"avatar_url":"https://avatars.githubusercontent.com/u/1038959?v=3","gravatar_id":"","url":"https://api.github.com/users/mcauser","html_url":"https://github.com/mcauser","followers_url":"https://api.github.com/users/mcauser/followers","following_url":"https://api.github.com/users/mcauser/following{/other_user}","gists_url":"https://api.github.com/users/mcauser/gists{/gist_id}","starred_url":"https://api.github.com/users/mcauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcauser/subscriptions","organizations_url":"https://api.github.com/users/mcauser/orgs","repos_url":"https://api.github.com/users/mcauser/repos","events_url":"https://api.github.com/users/mcauser/events{/privacy}","received_events_url":"https://api.github.com/users/mcauser/received_events","type":"User","site_admin":false},"repo":{"id":58699640,"name":"python_lcd","full_name":"mcauser/python_lcd","owner":{"login":"mcauser","id":1038959,"avatar_url":"https://avatars.githubusercontent.com/u/1038959?v=3","gravatar_id":"","url":"https://api.github.com/users/mcauser","html_url":"https://github.com/mcauser","followers_url":"https://api.github.com/users/mcauser/followers","following_url":"https://api.github.com/users/mcauser/following{/other_user}","gists_url":"https://api.github.com/users/mcauser/gists{/gist_id}","starred_url":"https://api.github.com/users/mcauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcauser/subscriptions","organizations_url":"https://api.github.com/users/mcauser/orgs","repos_url":"https://api.github.com/users/mcauser/repos","events_url":"https://api.github.com/users/mcauser/events{/privacy}","received_events_url":"https://api.github.com/users/mcauser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcauser/python_lcd","description":"Python based library for talking to character based LCDs.","fork":true,"url":"https://api.github.com/repos/mcauser/python_lcd","forks_url":"https://api.github.com/repos/mcauser/python_lcd/forks","keys_url":"https://api.github.com/repos/mcauser/python_lcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcauser/python_lcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcauser/python_lcd/teams","hooks_url":"https://api.github.com/repos/mcauser/python_lcd/hooks","issue_events_url":"https://api.github.com/repos/mcauser/python_lcd/issues/events{/number}","events_url":"https://api.github.com/repos/mcauser/python_lcd/events","assignees_url":"https://api.github.com/repos/mcauser/python_lcd/assignees{/user}","branches_url":"https://api.github.com/repos/mcauser/python_lcd/branches{/branch}","tags_url":"https://api.github.com/repos/mcauser/python_lcd/tags","blobs_url":"https://api.github.com/repos/mcauser/python_lcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcauser/python_lcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcauser/python_lcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcauser/python_lcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcauser/python_lcd/statuses/{sha}","languages_url":"https://api.github.com/repos/mcauser/python_lcd/languages","stargazers_url":"https://api.github.com/repos/mcauser/python_lcd/stargazers","contributors_url":"https://api.github.com/repos/mcauser/python_lcd/contributors","subscribers_url":"https://api.github.com/repos/mcauser/python_lcd/subscribers","subscription_url":"https://api.github.com/repos/mcauser/python_lcd/subscription","commits_url":"https://api.github.com/repos/mcauser/python_lcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcauser/python_lcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcauser/python_lcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcauser/python_lcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcauser/python_lcd/contents/{+path}","compare_url":"https://api.github.com/repos/mcauser/python_lcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcauser/python_lcd/merges","archive_url":"https://api.github.com/repos/mcauser/python_lcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcauser/python_lcd/downloads","issues_url":"https://api.github.com/repos/mcauser/python_lcd/issues{/number}","pulls_url":"https://api.github.com/repos/mcauser/python_lcd/pulls{/number}","milestones_url":"https://api.github.com/repos/mcauser/python_lcd/milestones{/number}","notifications_url":"https://api.github.com/repos/mcauser/python_lcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcauser/python_lcd/labels{/name}","releases_url":"https://api.github.com/repos/mcauser/python_lcd/releases{/id}","deployments_url":"https://api.github.com/repos/mcauser/python_lcd/deployments","created_at":"2016-05-13T04:35:47Z","updated_at":"2016-05-13T04:35:48Z","pushed_at":"2017-02-20T03:04:19Z","git_url":"git://github.com/mcauser/python_lcd.git","ssh_url":"git@github.com:mcauser/python_lcd.git","clone_url":"https://github.com/mcauser/python_lcd.git","svn_url":"https://github.com/mcauser/python_lcd","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dhylands:master","ref":"master","sha":"4944b8ff6cd5b1b648ce26b35ad5f67cdd33753e","user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"repo":{"id":15179441,"name":"python_lcd","full_name":"dhylands/python_lcd","owner":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhylands/python_lcd","description":"Python based library for talking to character based LCDs.","fork":false,"url":"https://api.github.com/repos/dhylands/python_lcd","forks_url":"https://api.github.com/repos/dhylands/python_lcd/forks","keys_url":"https://api.github.com/repos/dhylands/python_lcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhylands/python_lcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhylands/python_lcd/teams","hooks_url":"https://api.github.com/repos/dhylands/python_lcd/hooks","issue_events_url":"https://api.github.com/repos/dhylands/python_lcd/issues/events{/number}","events_url":"https://api.github.com/repos/dhylands/python_lcd/events","assignees_url":"https://api.github.com/repos/dhylands/python_lcd/assignees{/user}","branches_url":"https://api.github.com/repos/dhylands/python_lcd/branches{/branch}","tags_url":"https://api.github.com/repos/dhylands/python_lcd/tags","blobs_url":"https://api.github.com/repos/dhylands/python_lcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhylands/python_lcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhylands/python_lcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhylands/python_lcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhylands/python_lcd/statuses/{sha}","languages_url":"https://api.github.com/repos/dhylands/python_lcd/languages","stargazers_url":"https://api.github.com/repos/dhylands/python_lcd/stargazers","contributors_url":"https://api.github.com/repos/dhylands/python_lcd/contributors","subscribers_url":"https://api.github.com/repos/dhylands/python_lcd/subscribers","subscription_url":"https://api.github.com/repos/dhylands/python_lcd/subscription","commits_url":"https://api.github.com/repos/dhylands/python_lcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhylands/python_lcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhylands/python_lcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhylands/python_lcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhylands/python_lcd/contents/{+path}","compare_url":"https://api.github.com/repos/dhylands/python_lcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhylands/python_lcd/merges","archive_url":"https://api.github.com/repos/dhylands/python_lcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhylands/python_lcd/downloads","issues_url":"https://api.github.com/repos/dhylands/python_lcd/issues{/number}","pulls_url":"https://api.github.com/repos/dhylands/python_lcd/pulls{/number}","milestones_url":"https://api.github.com/repos/dhylands/python_lcd/milestones{/number}","notifications_url":"https://api.github.com/repos/dhylands/python_lcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhylands/python_lcd/labels{/name}","releases_url":"https://api.github.com/repos/dhylands/python_lcd/releases{/id}","deployments_url":"https://api.github.com/repos/dhylands/python_lcd/deployments","created_at":"2013-12-14T03:35:12Z","updated_at":"2017-02-14T10:05:54Z","pushed_at":"2017-02-20T02:55:43Z","git_url":"git://github.com/dhylands/python_lcd.git","ssh_url":"git@github.com:dhylands/python_lcd.git","clone_url":"https://github.com/dhylands/python_lcd.git","svn_url":"https://github.com/dhylands/python_lcd","homepage":null,"size":60,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dhylands/python_lcd/pulls/9"},"html":{"href":"https://github.com/dhylands/python_lcd/pull/9"},"issue":{"href":"https://api.github.com/repos/dhylands/python_lcd/issues/9"},"comments":{"href":"https://api.github.com/repos/dhylands/python_lcd/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dhylands/python_lcd/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dhylands/python_lcd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dhylands/python_lcd/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dhylands/python_lcd/statuses/15e621efe100952cb6dd4294d451c0d941b8fe79"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":33,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"mcauser"}}