{"action":"created","issue":{"url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/22","repository_url":"https://api.github.com/repos/bremme/arduino-tm1637","labels_url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/22/comments","events_url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/22/events","html_url":"https://github.com/bremme/arduino-tm1637/issues/22","id":310267173,"number":22,"title":"Align Right?","user":{"login":"dan2600","id":19350756,"avatar_url":"https://avatars3.githubusercontent.com/u/19350756?v=4","gravatar_id":"","url":"https://api.github.com/users/dan2600","html_url":"https://github.com/dan2600","followers_url":"https://api.github.com/users/dan2600/followers","following_url":"https://api.github.com/users/dan2600/following{/other_user}","gists_url":"https://api.github.com/users/dan2600/gists{/gist_id}","starred_url":"https://api.github.com/users/dan2600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan2600/subscriptions","organizations_url":"https://api.github.com/users/dan2600/orgs","repos_url":"https://api.github.com/users/dan2600/repos","events_url":"https://api.github.com/users/dan2600/events{/privacy}","received_events_url":"https://api.github.com/users/dan2600/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-31T19:52:43Z","updated_at":"2018-04-09T13:25:15Z","closed_at":null,"author_association":"NONE","body":"Any way to make the digits align right instead of left when they are shorter than 4 digits? "},"comment":{"url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/comments/379750535","html_url":"https://github.com/bremme/arduino-tm1637/issues/22#issuecomment-379750535","issue_url":"https://api.github.com/repos/bremme/arduino-tm1637/issues/22","id":379750535,"user":{"login":"bremme","id":6715707,"avatar_url":"https://avatars0.githubusercontent.com/u/6715707?v=4","gravatar_id":"","url":"https://api.github.com/users/bremme","html_url":"https://github.com/bremme","followers_url":"https://api.github.com/users/bremme/followers","following_url":"https://api.github.com/users/bremme/following{/other_user}","gists_url":"https://api.github.com/users/bremme/gists{/gist_id}","starred_url":"https://api.github.com/users/bremme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bremme/subscriptions","organizations_url":"https://api.github.com/users/bremme/orgs","repos_url":"https://api.github.com/users/bremme/repos","events_url":"https://api.github.com/users/bremme/events{/privacy}","received_events_url":"https://api.github.com/users/bremme/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T13:25:15Z","updated_at":"2018-04-09T13:25:15Z","author_association":"OWNER","body":"This sounds like a good option, have to think about a proper solution. The library just implements the Arduino print/write methods and these don't support padding or right alight. I should probably just add a custom method `printNumber` with a align argument. In the mean time you can just use a custom function yourself, quick and dirty example:\r\n\r\n```c++\r\nvoid printAlignRight(int number) {\r\n  if (number < 10) {\r\n    display.setCursor(0, 3);\r\n  }\r\n  else if ( number < 100) {\r\n    display.setCursor(0, 2);\r\n  }\r\n  else  if (number < 1000) {\r\n    display.setCursor(0, 1);\r\n  } else {\r\n    display.setCursor(0, 0);\r\n  }\r\n  display.print(number);\r\n}\r\n```\r\n\r\nHope this helps."}}
{"actor":{"display_login":"bremme"}}