{"action":"created","issue":{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/276","repository_url":"https://api.github.com/repos/parallaxinc/BlocklyProp","labels_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/276/comments","events_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/276/events","html_url":"https://github.com/parallaxinc/BlocklyProp/issues/276","id":162546639,"number":276,"title":"Wave play back block generates wrong code","user":{"login":"RoxyH","id":20117435,"avatar_url":"https://avatars.githubusercontent.com/u/20117435?v=3","gravatar_id":"","url":"https://api.github.com/users/RoxyH","html_url":"https://github.com/RoxyH","followers_url":"https://api.github.com/users/RoxyH/followers","following_url":"https://api.github.com/users/RoxyH/following{/other_user}","gists_url":"https://api.github.com/users/RoxyH/gists{/gist_id}","starred_url":"https://api.github.com/users/RoxyH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoxyH/subscriptions","organizations_url":"https://api.github.com/users/RoxyH/orgs","repos_url":"https://api.github.com/users/RoxyH/repos","events_url":"https://api.github.com/users/RoxyH/events{/privacy}","received_events_url":"https://api.github.com/users/RoxyH/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/labels/In%20Demo","name":"In Demo","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"DarkmatterVale","id":6094957,"avatar_url":"https://avatars.githubusercontent.com/u/6094957?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkmatterVale","html_url":"https://github.com/DarkmatterVale","followers_url":"https://api.github.com/users/DarkmatterVale/followers","following_url":"https://api.github.com/users/DarkmatterVale/following{/other_user}","gists_url":"https://api.github.com/users/DarkmatterVale/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkmatterVale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkmatterVale/subscriptions","organizations_url":"https://api.github.com/users/DarkmatterVale/orgs","repos_url":"https://api.github.com/users/DarkmatterVale/repos","events_url":"https://api.github.com/users/DarkmatterVale/events{/privacy}","received_events_url":"https://api.github.com/users/DarkmatterVale/received_events","type":"User","site_admin":false},"assignees":[{"login":"DarkmatterVale","id":6094957,"avatar_url":"https://avatars.githubusercontent.com/u/6094957?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkmatterVale","html_url":"https://github.com/DarkmatterVale","followers_url":"https://api.github.com/users/DarkmatterVale/followers","following_url":"https://api.github.com/users/DarkmatterVale/following{/other_user}","gists_url":"https://api.github.com/users/DarkmatterVale/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkmatterVale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkmatterVale/subscriptions","organizations_url":"https://api.github.com/users/DarkmatterVale/orgs","repos_url":"https://api.github.com/users/DarkmatterVale/repos","events_url":"https://api.github.com/users/DarkmatterVale/events{/privacy}","received_events_url":"https://api.github.com/users/DarkmatterVale/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-27T20:57:57Z","updated_at":"2016-07-15T17:01:53Z","closed_at":null,"body":"![snip4](https://cloud.githubusercontent.com/assets/20117435/16395335/2893291a-3c6e-11e6-915d-6525cbc685c3.PNG)\r\nThese are the blocks used \r\n\r\nThis is the code generated by Blockly\r\n```\r\n#include \"simpletools.h\"\r\n#include \"wavplayer.h\"\r\n\r\n\r\nint main() {\r\n\r\n  const char filetechloop[] = {\"techloop\"};\r\n  wav_play(techloop);\r\n  wav_volume(10);\r\n  pause(50000);\r\n  wav_stop();\r\n\r\n}\r\n```\r\n\r\nThis is the corrected code \r\n```\r\n#include \"simpletools.h\"\r\n#include \"wavplayer.h\"\r\nint main() {\r\n  int DO = 22, CLK = 23, DI = 24, CS = 25;        // SD I/O pins\r\n  sd_mount(DO, CLK, DI, CS);                      // Mount SD card\r\n\r\n    const char filetechloop[] = {\"techloop.wav\"};\r\n    wav_play(\"techloop.wav\");\r\n    \r\n    wav_volume(10);\r\n    pause(50000);\r\n  }\r\n```\r\n\r\n-Roxy "},"comment":{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/comments/233008615","html_url":"https://github.com/parallaxinc/BlocklyProp/issues/276#issuecomment-233008615","issue_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/276","id":233008615,"user":{"login":"kgracey","id":9534148,"avatar_url":"https://avatars.githubusercontent.com/u/9534148?v=3","gravatar_id":"","url":"https://api.github.com/users/kgracey","html_url":"https://github.com/kgracey","followers_url":"https://api.github.com/users/kgracey/followers","following_url":"https://api.github.com/users/kgracey/following{/other_user}","gists_url":"https://api.github.com/users/kgracey/gists{/gist_id}","starred_url":"https://api.github.com/users/kgracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgracey/subscriptions","organizations_url":"https://api.github.com/users/kgracey/orgs","repos_url":"https://api.github.com/users/kgracey/repos","events_url":"https://api.github.com/users/kgracey/events{/privacy}","received_events_url":"https://api.github.com/users/kgracey/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T17:01:53Z","updated_at":"2016-07-15T17:01:53Z","body":"@DarkmatterVale the blocks on demo.blockly.parallax.com are still generating the old, non-working code. Could you get another look at this one?"}}
{"actor":{"display_login":"kgracey"}}