{"action":"created","issue":{"url":"https://api.github.com/repos/theoctal/octalbonescript/issues/42","labels_url":"https://api.github.com/repos/theoctal/octalbonescript/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/theoctal/octalbonescript/issues/42/comments","events_url":"https://api.github.com/repos/theoctal/octalbonescript/issues/42/events","html_url":"https://github.com/theoctal/octalbonescript/issues/42","id":96782907,"number":42,"title":"Problem with the PWM","user":{"login":"bAnj0","id":11213445,"avatar_url":"https://avatars.githubusercontent.com/u/11213445?v=3","gravatar_id":"","url":"https://api.github.com/users/bAnj0","html_url":"https://github.com/bAnj0","followers_url":"https://api.github.com/users/bAnj0/followers","following_url":"https://api.github.com/users/bAnj0/following{/other_user}","gists_url":"https://api.github.com/users/bAnj0/gists{/gist_id}","starred_url":"https://api.github.com/users/bAnj0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bAnj0/subscriptions","organizations_url":"https://api.github.com/users/bAnj0/orgs","repos_url":"https://api.github.com/users/bAnj0/repos","events_url":"https://api.github.com/users/bAnj0/events{/privacy}","received_events_url":"https://api.github.com/users/bAnj0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T10:38:11Z","updated_at":"2015-07-23T15:11:28Z","closed_at":null,"body":"Hi,\r\nwhen I try to use the PWM I have this problem on cloud9:\r\n\r\nThere was an error writing analog value: Fail to update PWM duty: ENOENT, open 'undefined/duty ns'\r\n\r\nSuggestions?"},"comment":{"url":"https://api.github.com/repos/theoctal/octalbonescript/issues/comments/124135678","html_url":"https://github.com/theoctal/octalbonescript/issues/42#issuecomment-124135678","issue_url":"https://api.github.com/repos/theoctal/octalbonescript/issues/42","id":124135678,"user":{"login":"bAnj0","id":11213445,"avatar_url":"https://avatars.githubusercontent.com/u/11213445?v=3","gravatar_id":"","url":"https://api.github.com/users/bAnj0","html_url":"https://github.com/bAnj0","followers_url":"https://api.github.com/users/bAnj0/followers","following_url":"https://api.github.com/users/bAnj0/following{/other_user}","gists_url":"https://api.github.com/users/bAnj0/gists{/gist_id}","starred_url":"https://api.github.com/users/bAnj0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bAnj0/subscriptions","organizations_url":"https://api.github.com/users/bAnj0/orgs","repos_url":"https://api.github.com/users/bAnj0/repos","events_url":"https://api.github.com/users/bAnj0/events{/privacy}","received_events_url":"https://api.github.com/users/bAnj0/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:11:28Z","updated_at":"2015-07-23T15:11:28Z","body":"Here the code:\r\n\r\nvar b = require('octalbonescript');\r\n\r\nvar motorSpeed = 'P9_21';\r\nvar enM1 = 'P9_15';\r\nvar M1 = 'P9_16';\r\n\r\nb.pinMode(motorSpeed, b.ANALOG_OUTPUT, function(err1) {\r\n  if (err1) {\r\n    console.error(err1.message); \r\n    return;\r\n }\r\n});\r\n  \r\nb.pinModeSync(M1, b.OUTPUT);\r\nb.digitalWriteSync(M1, b.LOW);\r\n\r\nb.pinModeSync(enM1, b.OUTPUT);\r\nb.digitalWriteSync(enM1, b.HIGH);\r\n\r\nb.analogWrite(motorSpeed, 0.5, 2000, function(err2) {\r\n      if (err2) {\r\n        console.error(err2.message); //output any error\r\n        return;\r\n      }\r\n});\r\n\r\nps: where is the output of the debug?"}}