{"action":"created","issue":{"url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/4","labels_url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/4/comments","events_url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/4/events","html_url":"https://github.com/PinguinoIDE/pinguino-libraries/issues/4","id":56909746,"number":4,"title":"TONE NOT WORKING","user":{"login":"fcwpinguino","id":3472584,"avatar_url":"https://avatars.githubusercontent.com/u/3472584?v=3","gravatar_id":"","url":"https://api.github.com/users/fcwpinguino","html_url":"https://github.com/fcwpinguino","followers_url":"https://api.github.com/users/fcwpinguino/followers","following_url":"https://api.github.com/users/fcwpinguino/following{/other_user}","gists_url":"https://api.github.com/users/fcwpinguino/gists{/gist_id}","starred_url":"https://api.github.com/users/fcwpinguino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcwpinguino/subscriptions","organizations_url":"https://api.github.com/users/fcwpinguino/orgs","repos_url":"https://api.github.com/users/fcwpinguino/repos","events_url":"https://api.github.com/users/fcwpinguino/events{/privacy}","received_events_url":"https://api.github.com/users/fcwpinguino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-07T12:29:50Z","updated_at":"2015-02-12T20:45:26Z","closed_at":null,"body":"regis\r\nI have been using the tone function in my pde and it has been work since the recent updates . I get the same result in windows and Linux I have tried different pins same result.\r\nTone(11,650,1000);\r\n\r\nThank you\r\nFred"},"comment":{"url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/comments/74149213","html_url":"https://github.com/PinguinoIDE/pinguino-libraries/issues/4#issuecomment-74149213","issue_url":"https://api.github.com/repos/PinguinoIDE/pinguino-libraries/issues/4","id":74149213,"user":{"login":"rblanchot","id":5788750,"avatar_url":"https://avatars.githubusercontent.com/u/5788750?v=3","gravatar_id":"","url":"https://api.github.com/users/rblanchot","html_url":"https://github.com/rblanchot","followers_url":"https://api.github.com/users/rblanchot/followers","following_url":"https://api.github.com/users/rblanchot/following{/other_user}","gists_url":"https://api.github.com/users/rblanchot/gists{/gist_id}","starred_url":"https://api.github.com/users/rblanchot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rblanchot/subscriptions","organizations_url":"https://api.github.com/users/rblanchot/orgs","repos_url":"https://api.github.com/users/rblanchot/repos","events_url":"https://api.github.com/users/rblanchot/events{/privacy}","received_events_url":"https://api.github.com/users/rblanchot/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T20:45:26Z","updated_at":"2015-02-12T20:45:26Z","body":"I've just tried : \r\n\r\nvoid setup()\r\n{\r\n}\r\n\r\nvoid loop()\r\n{\r\n    Sound(CCP1, D, 200);\r\n    delay(100);\r\n    Sound(CCP1, B, 450);\r\n    delay(100);\r\n}\r\n\r\nwith the very last v11 packages (last update today) and it works both for 47j53 and 45k50, with a piezo and also with pre-amplified little PC loudspeaker. So it should work for a 4550.\r\n\r\nFor a 4550 pins are : \r\n        #define CCP1        12\r\n        #define CCP2        11\r\n\r\nFor a 45K50 pins are : \r\n        #define CCP1        18  // RC2\r\n        #define CCP2        17  // RC1\r\n\r\nDid you tried to connect your piezo directly on 5V ? Do you have sound ?\r\n\r\nCan you try both CCP1 and CCP2 pins ? Still no sound ?\r\n\r\nBTW, the last parameter of Sound was the volume and I temporarily removed it. \r\nDon't know if it was a good idea. Anyway when you changed PWM_setPercentDutyCycle(pin, 50); to PWM_setPercentDutyCycle(pin, 100); you actually gave a bit more volume to your piezo.\r\n"}}