{"action":"created","issue":{"url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/20","repository_url":"https://api.github.com/repos/pimoroni/microdot-phat","labels_url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/20/comments","events_url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/20/events","html_url":"https://github.com/pimoroni/microdot-phat/issues/20","id":306305511,"number":20,"title":"set_brightness() behavior change","user":{"login":"lunatus","id":25388690,"avatar_url":"https://avatars1.githubusercontent.com/u/25388690?v=4","gravatar_id":"","url":"https://api.github.com/users/lunatus","html_url":"https://github.com/lunatus","followers_url":"https://api.github.com/users/lunatus/followers","following_url":"https://api.github.com/users/lunatus/following{/other_user}","gists_url":"https://api.github.com/users/lunatus/gists{/gist_id}","starred_url":"https://api.github.com/users/lunatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunatus/subscriptions","organizations_url":"https://api.github.com/users/lunatus/orgs","repos_url":"https://api.github.com/users/lunatus/repos","events_url":"https://api.github.com/users/lunatus/events{/privacy}","received_events_url":"https://api.github.com/users/lunatus/received_events","type":"User","site_admin":false},"labels":[{"id":404519561,"url":"https://api.github.com/repos/pimoroni/microdot-phat/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"Gadgetoid","id":1746967,"avatar_url":"https://avatars3.githubusercontent.com/u/1746967?v=4","gravatar_id":"","url":"https://api.github.com/users/Gadgetoid","html_url":"https://github.com/Gadgetoid","followers_url":"https://api.github.com/users/Gadgetoid/followers","following_url":"https://api.github.com/users/Gadgetoid/following{/other_user}","gists_url":"https://api.github.com/users/Gadgetoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Gadgetoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gadgetoid/subscriptions","organizations_url":"https://api.github.com/users/Gadgetoid/orgs","repos_url":"https://api.github.com/users/Gadgetoid/repos","events_url":"https://api.github.com/users/Gadgetoid/events{/privacy}","received_events_url":"https://api.github.com/users/Gadgetoid/received_events","type":"User","site_admin":false},"assignees":[{"login":"Gadgetoid","id":1746967,"avatar_url":"https://avatars3.githubusercontent.com/u/1746967?v=4","gravatar_id":"","url":"https://api.github.com/users/Gadgetoid","html_url":"https://github.com/Gadgetoid","followers_url":"https://api.github.com/users/Gadgetoid/followers","following_url":"https://api.github.com/users/Gadgetoid/following{/other_user}","gists_url":"https://api.github.com/users/Gadgetoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Gadgetoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gadgetoid/subscriptions","organizations_url":"https://api.github.com/users/Gadgetoid/orgs","repos_url":"https://api.github.com/users/Gadgetoid/repos","events_url":"https://api.github.com/users/Gadgetoid/events{/privacy}","received_events_url":"https://api.github.com/users/Gadgetoid/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-19T01:17:02Z","updated_at":"2018-03-20T22:16:05Z","closed_at":"2018-03-19T12:52:57Z","author_association":"NONE","body":"Just wanted to point out something. Perhaps it's somewhere in the documentation that I didn't read or was broken to begin with...\r\n\r\nI had modified the canned clock example to flip the display and set the brightness to a lower value. This was working great until this evening when I did an apt-get update and got some new libs.\r\n\r\nThe error is:\r\nTraceback (most recent call last):\r\n  File \"./clock.py\", line 16, in <module>\r\n    set_brightness(0.4)\r\n  File \"/usr/lib/python2.7/dist-packages/microdotphat/__init__.py\", line 311, in set_brightness\r\n    _mat[m_x][0].set_brightness(brightness)\r\nNameError: global name '_mat' is not defined\r\n\r\nObviously, somebody didn't get initialized and to fix this problem one needs to call show() before the set brightness call.\r\n\r\nJust pointing this out as something that changed, in case it was unintentional. \r\n\r\n-Ben"},"comment":{"url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/comments/374775780","html_url":"https://github.com/pimoroni/microdot-phat/issues/20#issuecomment-374775780","issue_url":"https://api.github.com/repos/pimoroni/microdot-phat/issues/20","id":374775780,"user":{"login":"lunatus","id":25388690,"avatar_url":"https://avatars1.githubusercontent.com/u/25388690?v=4","gravatar_id":"","url":"https://api.github.com/users/lunatus","html_url":"https://github.com/lunatus","followers_url":"https://api.github.com/users/lunatus/followers","following_url":"https://api.github.com/users/lunatus/following{/other_user}","gists_url":"https://api.github.com/users/lunatus/gists{/gist_id}","starred_url":"https://api.github.com/users/lunatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunatus/subscriptions","organizations_url":"https://api.github.com/users/lunatus/orgs","repos_url":"https://api.github.com/users/lunatus/repos","events_url":"https://api.github.com/users/lunatus/events{/privacy}","received_events_url":"https://api.github.com/users/lunatus/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T22:16:05Z","updated_at":"2018-03-20T22:16:05Z","author_association":"NONE","body":"I just checked it out. Works again. Thanks for fixing it. I didn't want to dig through it myself the other night. I had had my own variable initialization adventure in Arduinoland at work last week and wasn't in the mood for another just then..."}}
{"actor":{"display_login":"lunatus"}}