{"action":"created","issue":{"url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/6","repository_url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune","labels_url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/6/comments","events_url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/6/events","html_url":"https://github.com/Arduboy/ArduboyPlayTune/pull/6","id":159235361,"number":6,"title":"Add support for output disable/enable (mute)","user":{"login":"MLXXXp","id":8151717,"avatar_url":"https://avatars.githubusercontent.com/u/8151717?v=3","gravatar_id":"","url":"https://api.github.com/users/MLXXXp","html_url":"https://github.com/MLXXXp","followers_url":"https://api.github.com/users/MLXXXp/followers","following_url":"https://api.github.com/users/MLXXXp/following{/other_user}","gists_url":"https://api.github.com/users/MLXXXp/gists{/gist_id}","starred_url":"https://api.github.com/users/MLXXXp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLXXXp/subscriptions","organizations_url":"https://api.github.com/users/MLXXXp/orgs","repos_url":"https://api.github.com/users/MLXXXp/repos","events_url":"https://api.github.com/users/MLXXXp/events{/privacy}","received_events_url":"https://api.github.com/users/MLXXXp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-08T18:11:21Z","updated_at":"2016-06-28T21:48:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/pulls/6","html_url":"https://github.com/Arduboy/ArduboyPlayTune/pull/6","diff_url":"https://github.com/Arduboy/ArduboyPlayTune/pull/6.diff","patch_url":"https://github.com/Arduboy/ArduboyPlayTune/pull/6.patch"},"body":"Constructor now requires a parameter which is a pointer to a function which\r\nreturns \"true\" if sound is to be played or \"false\" if sound should be muted.\r\n\r\nAlso:\r\n- Additions and changes for improved handling of tones.\r\n- Updated README.md and documentation within the source.\r\n- Added LICENSE.txt and keywords.txt files.\r\n- Added new authors, enhanced the description, and changed version from\r\n  0.9 to 0.9.0 in the library.properties file.\r\n\r\nI considered making this even more Arduboy specific by having the Arduboy library object passed to the constructor, instead of a pointer to a function that returns the mute state. This would allow using *audio.enabled()* directly for muting. It could also use the defined *PIN_SPEAKER_1* and *PIN_SPEAKER_2* to set the pin numbers, so the user could just specify \"1\" or \"2\" for *initChannel()*.\r\n\r\nHowever, the way it is now isn't really that much more difficult to use, if at all, and the library remains more generic. It could be used by any Arduino project, not just the Arduboy, and I've written the documentation with this in mind.\r\n\r\nI've written an [*ArduboyPlaytuneTest.ino*](https://gist.github.com/MLXXXp/21aee6e346c9ef17be19f43f4e9ed464) sketch for testing, which can be used with my proposed [*Ardyboy2* library](https://github.com/MLXXXp/Arduboy2) or V1.2 of the [*Arduboy* library](https://github.com/Arduboy/Arduboy). To use it with Arduboy library V1.2 just change *Arduboy2* to *Arduboy*."},"comment":{"url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/comments/229194704","html_url":"https://github.com/Arduboy/ArduboyPlayTune/pull/6#issuecomment-229194704","issue_url":"https://api.github.com/repos/Arduboy/ArduboyPlayTune/issues/6","id":229194704,"user":{"login":"MLXXXp","id":8151717,"avatar_url":"https://avatars.githubusercontent.com/u/8151717?v=3","gravatar_id":"","url":"https://api.github.com/users/MLXXXp","html_url":"https://github.com/MLXXXp","followers_url":"https://api.github.com/users/MLXXXp/followers","following_url":"https://api.github.com/users/MLXXXp/following{/other_user}","gists_url":"https://api.github.com/users/MLXXXp/gists{/gist_id}","starred_url":"https://api.github.com/users/MLXXXp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLXXXp/subscriptions","organizations_url":"https://api.github.com/users/MLXXXp/orgs","repos_url":"https://api.github.com/users/MLXXXp/repos","events_url":"https://api.github.com/users/MLXXXp/events{/privacy}","received_events_url":"https://api.github.com/users/MLXXXp/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T21:48:51Z","updated_at":"2016-06-28T21:48:51Z","body":"Going twice ...\r\n"}}
{"actor":{"display_login":"MLXXXp"}}