{"action":"opened","issue":{"url":"https://api.github.com/repos/tessel/t2-docs/issues/67","repository_url":"https://api.github.com/repos/tessel/t2-docs","labels_url":"https://api.github.com/repos/tessel/t2-docs/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/tessel/t2-docs/issues/67/comments","events_url":"https://api.github.com/repos/tessel/t2-docs/issues/67/events","html_url":"https://github.com/tessel/t2-docs/issues/67","id":155187656,"number":67,"title":"pin.analogWrite(0.6) sets voltage to 0.6V, not 60% of 3.3V","user":{"login":"smrq","id":400889,"avatar_url":"https://avatars.githubusercontent.com/u/400889?v=3","gravatar_id":"","url":"https://api.github.com/users/smrq","html_url":"https://github.com/smrq","followers_url":"https://api.github.com/users/smrq/followers","following_url":"https://api.github.com/users/smrq/following{/other_user}","gists_url":"https://api.github.com/users/smrq/gists{/gist_id}","starred_url":"https://api.github.com/users/smrq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smrq/subscriptions","organizations_url":"https://api.github.com/users/smrq/orgs","repos_url":"https://api.github.com/users/smrq/repos","events_url":"https://api.github.com/users/smrq/events{/privacy}","received_events_url":"https://api.github.com/users/smrq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T06:44:49Z","updated_at":"2016-05-17T06:44:49Z","closed_at":null,"body":"According to [the docs](https://github.com/tessel/t2-docs/blob/8c94789d1eaa718921f8e32dca47e447056491a3/hardware-api.md#analog-pins):\r\n\r\n> pin.analogWrite(0.6);  // turn pin to 60% of high\r\n\r\nBut I found that rather than ~2V, it set the pin to 0.6V.  Not sure if it's a docs problem or a software problem -- but I did find it surprising (I expected `analogWrite(1)` to set the pin to 3.3V, not 1V.)"}}