{"action":"created","comment":{"url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/comments/242733687","pull_request_review_id":186317504,"id":242733687,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjczMzY4Nw==","diff_hunk":"@@ -202,6 +202,16 @@ def display(self, image):\n         self.data(list(buf))\n \n \n+class ssd1309(ssd1306):\n+    \"\"\"\n+    Serial interface to a monochrome SSD1309 OLED display.\n+\n+    On creation, an initialization sequence is pumped to the display\n+    to properly configure it. Further control commands can then be called to\n+    affect the brightness and other settings.\n+    \"\"\"","path":"luma/oled/device/__init__.py","position":44,"original_position":11,"commit_id":"9a968aed91b2df0691385a6211b61886490bdfdc","original_commit_id":"a68c32dac2539200756a0289c6624faa4057f781","user":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"body":"Also added docstring params for ssd1309 and ssd1306","created_at":"2018-12-18T22:43:01Z","updated_at":"2018-12-18T22:43:01Z","html_url":"https://github.com/rm-hull/luma.oled/pull/231#discussion_r242733687","pull_request_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/comments/242733687"},"html":{"href":"https://github.com/rm-hull/luma.oled/pull/231#discussion_r242733687"},"pull_request":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231"}},"in_reply_to_id":241981558},"pull_request":{"url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231","id":237400145,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NDAwMTQ1","html_url":"https://github.com/rm-hull/luma.oled/pull/231","diff_url":"https://github.com/rm-hull/luma.oled/pull/231.diff","patch_url":"https://github.com/rm-hull/luma.oled/pull/231.patch","issue_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/231","number":231,"state":"open","locked":false,"title":"SSD1309 Implementation","user":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"body":"Fixes #222 \r\n\r\n## TODO\r\n- [x] Driver code\r\n- [x] Add documentation\r\n- [x] Add PDF datasheet\r\n- [x] Regression tests\r\n- [ ] Add `ssd1309.conf` to luma.examples\r\n- [x] Add entry to changelog\r\n- [x] Ready for review\r\n\r\nhttps://www.aliexpress.com/item/2-42-inch-LCD-Screen-12864-OLED-Display-Module-IIC-I2C-SPI-Serial-C51-STM32-SSD1309/32857123469.html?spm=a2g0s.9042311.0.0.3da24c4dpFOWfw\r\n\r\n![image](https://user-images.githubusercontent.com/1915543/49748714-5d96db00-fc9e-11e8-93b3-8ae3062429fa.png)\r\n\r\nDevice appears to be configured for SPI rather than I2C.\r\n\r\n| OLED Pin | OLED Name | RPi Pin | RPi Function | Remarks |\r\n|----------|----------|---------|----------|-------|\r\n| 1 | GND | P01-20 | GND | Ground |\r\n| 2 | VCC | P01-17 | 3V3 | +3.3V Power |\r\n| 3 | SCL | P01-23 | GPIO 11 (SCLK) | Serial Clock |\r\n| 4 | SDA | P01-19 | GPIO 10 (MOSI) | Serial Data |\r\n| 5 | RES | P01-22 | GPIO 25 | Reset |\r\n| 6 | DC | P01-18 | GPIO 24 | Data/Command |\r\n| 7 | CS | P01-24 | GPIO 8 (CE0) | Chip Select |","created_at":"2018-12-10T17:16:29Z","updated_at":"2018-12-18T22:43:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb4dd4c1a977b234c058eb8552b1d5e7900a03c7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231/commits","review_comments_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231/comments","review_comment_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/231/comments","statuses_url":"https://api.github.com/repos/rm-hull/luma.oled/statuses/9a968aed91b2df0691385a6211b61886490bdfdc","head":{"label":"rm-hull:feature/ssd1309","ref":"feature/ssd1309","sha":"9a968aed91b2df0691385a6211b61886490bdfdc","user":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"repo":{"id":24118673,"node_id":"MDEwOlJlcG9zaXRvcnkyNDExODY3Mw==","name":"luma.oled","full_name":"rm-hull/luma.oled","private":false,"owner":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rm-hull/luma.oled","description":"Python module to drive a SSD1306 / SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SH1106 OLED ","fork":false,"url":"https://api.github.com/repos/rm-hull/luma.oled","forks_url":"https://api.github.com/repos/rm-hull/luma.oled/forks","keys_url":"https://api.github.com/repos/rm-hull/luma.oled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rm-hull/luma.oled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rm-hull/luma.oled/teams","hooks_url":"https://api.github.com/repos/rm-hull/luma.oled/hooks","issue_events_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/events{/number}","events_url":"https://api.github.com/repos/rm-hull/luma.oled/events","assignees_url":"https://api.github.com/repos/rm-hull/luma.oled/assignees{/user}","branches_url":"https://api.github.com/repos/rm-hull/luma.oled/branches{/branch}","tags_url":"https://api.github.com/repos/rm-hull/luma.oled/tags","blobs_url":"https://api.github.com/repos/rm-hull/luma.oled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rm-hull/luma.oled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rm-hull/luma.oled/git/refs{/sha}","trees_url":"https://api.github.com/repos/rm-hull/luma.oled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rm-hull/luma.oled/statuses/{sha}","languages_url":"https://api.github.com/repos/rm-hull/luma.oled/languages","stargazers_url":"https://api.github.com/repos/rm-hull/luma.oled/stargazers","contributors_url":"https://api.github.com/repos/rm-hull/luma.oled/contributors","subscribers_url":"https://api.github.com/repos/rm-hull/luma.oled/subscribers","subscription_url":"https://api.github.com/repos/rm-hull/luma.oled/subscription","commits_url":"https://api.github.com/repos/rm-hull/luma.oled/commits{/sha}","git_commits_url":"https://api.github.com/repos/rm-hull/luma.oled/git/commits{/sha}","comments_url":"https://api.github.com/repos/rm-hull/luma.oled/comments{/number}","issue_comment_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/comments{/number}","contents_url":"https://api.github.com/repos/rm-hull/luma.oled/contents/{+path}","compare_url":"https://api.github.com/repos/rm-hull/luma.oled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rm-hull/luma.oled/merges","archive_url":"https://api.github.com/repos/rm-hull/luma.oled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rm-hull/luma.oled/downloads","issues_url":"https://api.github.com/repos/rm-hull/luma.oled/issues{/number}","pulls_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls{/number}","milestones_url":"https://api.github.com/repos/rm-hull/luma.oled/milestones{/number}","notifications_url":"https://api.github.com/repos/rm-hull/luma.oled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rm-hull/luma.oled/labels{/name}","releases_url":"https://api.github.com/repos/rm-hull/luma.oled/releases{/id}","deployments_url":"https://api.github.com/repos/rm-hull/luma.oled/deployments","created_at":"2014-09-16T21:35:26Z","updated_at":"2018-12-18T00:03:41Z","pushed_at":"2018-12-18T22:42:29Z","git_url":"git://github.com/rm-hull/luma.oled.git","ssh_url":"git@github.com:rm-hull/luma.oled.git","clone_url":"https://github.com/rm-hull/luma.oled.git","svn_url":"https://github.com/rm-hull/luma.oled","homepage":"https://luma-oled.readthedocs.io","size":15058,"stargazers_count":324,"watchers_count":324,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":74,"open_issues":11,"watchers":324,"default_branch":"master"}},"base":{"label":"rm-hull:master","ref":"master","sha":"c6c8bdacef5c8099de2c6a2f8db74cedd3e8f9d6","user":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"repo":{"id":24118673,"node_id":"MDEwOlJlcG9zaXRvcnkyNDExODY3Mw==","name":"luma.oled","full_name":"rm-hull/luma.oled","private":false,"owner":{"login":"rm-hull","id":1915543,"node_id":"MDQ6VXNlcjE5MTU1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1915543?v=4","gravatar_id":"","url":"https://api.github.com/users/rm-hull","html_url":"https://github.com/rm-hull","followers_url":"https://api.github.com/users/rm-hull/followers","following_url":"https://api.github.com/users/rm-hull/following{/other_user}","gists_url":"https://api.github.com/users/rm-hull/gists{/gist_id}","starred_url":"https://api.github.com/users/rm-hull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm-hull/subscriptions","organizations_url":"https://api.github.com/users/rm-hull/orgs","repos_url":"https://api.github.com/users/rm-hull/repos","events_url":"https://api.github.com/users/rm-hull/events{/privacy}","received_events_url":"https://api.github.com/users/rm-hull/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rm-hull/luma.oled","description":"Python module to drive a SSD1306 / SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SH1106 OLED ","fork":false,"url":"https://api.github.com/repos/rm-hull/luma.oled","forks_url":"https://api.github.com/repos/rm-hull/luma.oled/forks","keys_url":"https://api.github.com/repos/rm-hull/luma.oled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rm-hull/luma.oled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rm-hull/luma.oled/teams","hooks_url":"https://api.github.com/repos/rm-hull/luma.oled/hooks","issue_events_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/events{/number}","events_url":"https://api.github.com/repos/rm-hull/luma.oled/events","assignees_url":"https://api.github.com/repos/rm-hull/luma.oled/assignees{/user}","branches_url":"https://api.github.com/repos/rm-hull/luma.oled/branches{/branch}","tags_url":"https://api.github.com/repos/rm-hull/luma.oled/tags","blobs_url":"https://api.github.com/repos/rm-hull/luma.oled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rm-hull/luma.oled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rm-hull/luma.oled/git/refs{/sha}","trees_url":"https://api.github.com/repos/rm-hull/luma.oled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rm-hull/luma.oled/statuses/{sha}","languages_url":"https://api.github.com/repos/rm-hull/luma.oled/languages","stargazers_url":"https://api.github.com/repos/rm-hull/luma.oled/stargazers","contributors_url":"https://api.github.com/repos/rm-hull/luma.oled/contributors","subscribers_url":"https://api.github.com/repos/rm-hull/luma.oled/subscribers","subscription_url":"https://api.github.com/repos/rm-hull/luma.oled/subscription","commits_url":"https://api.github.com/repos/rm-hull/luma.oled/commits{/sha}","git_commits_url":"https://api.github.com/repos/rm-hull/luma.oled/git/commits{/sha}","comments_url":"https://api.github.com/repos/rm-hull/luma.oled/comments{/number}","issue_comment_url":"https://api.github.com/repos/rm-hull/luma.oled/issues/comments{/number}","contents_url":"https://api.github.com/repos/rm-hull/luma.oled/contents/{+path}","compare_url":"https://api.github.com/repos/rm-hull/luma.oled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rm-hull/luma.oled/merges","archive_url":"https://api.github.com/repos/rm-hull/luma.oled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rm-hull/luma.oled/downloads","issues_url":"https://api.github.com/repos/rm-hull/luma.oled/issues{/number}","pulls_url":"https://api.github.com/repos/rm-hull/luma.oled/pulls{/number}","milestones_url":"https://api.github.com/repos/rm-hull/luma.oled/milestones{/number}","notifications_url":"https://api.github.com/repos/rm-hull/luma.oled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rm-hull/luma.oled/labels{/name}","releases_url":"https://api.github.com/repos/rm-hull/luma.oled/releases{/id}","deployments_url":"https://api.github.com/repos/rm-hull/luma.oled/deployments","created_at":"2014-09-16T21:35:26Z","updated_at":"2018-12-18T00:03:41Z","pushed_at":"2018-12-18T22:42:29Z","git_url":"git://github.com/rm-hull/luma.oled.git","ssh_url":"git@github.com:rm-hull/luma.oled.git","clone_url":"https://github.com/rm-hull/luma.oled.git","svn_url":"https://github.com/rm-hull/luma.oled","homepage":"https://luma-oled.readthedocs.io","size":15058,"stargazers_count":324,"watchers_count":324,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":74,"open_issues":11,"watchers":324,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231"},"html":{"href":"https://github.com/rm-hull/luma.oled/pull/231"},"issue":{"href":"https://api.github.com/repos/rm-hull/luma.oled/issues/231"},"comments":{"href":"https://api.github.com/repos/rm-hull/luma.oled/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rm-hull/luma.oled/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/rm-hull/luma.oled/statuses/9a968aed91b2df0691385a6211b61886490bdfdc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"rm-hull"}}