{"action":"created","issue":{"url":"https://api.github.com/repos/fivdi/onoff/issues/36","labels_url":"https://api.github.com/repos/fivdi/onoff/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/fivdi/onoff/issues/36/comments","events_url":"https://api.github.com/repos/fivdi/onoff/issues/36/events","html_url":"https://github.com/fivdi/onoff/issues/36","id":99554447,"number":36,"title":"Register pin without altering state","user":{"login":"domoconnell","id":2184582,"avatar_url":"https://avatars.githubusercontent.com/u/2184582?v=3","gravatar_id":"","url":"https://api.github.com/users/domoconnell","html_url":"https://github.com/domoconnell","followers_url":"https://api.github.com/users/domoconnell/followers","following_url":"https://api.github.com/users/domoconnell/following{/other_user}","gists_url":"https://api.github.com/users/domoconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/domoconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domoconnell/subscriptions","organizations_url":"https://api.github.com/users/domoconnell/orgs","repos_url":"https://api.github.com/users/domoconnell/repos","events_url":"https://api.github.com/users/domoconnell/events{/privacy}","received_events_url":"https://api.github.com/users/domoconnell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T00:57:13Z","updated_at":"2015-08-28T19:30:26Z","closed_at":"2015-08-28T19:30:26Z","body":"Great library :+1: \r\n\r\nNot really an issue, more like a feature request.\r\n\r\nWhen a pin is registered at the start of the script using\r\nvar led = new Gpio(14, 'out');\r\n\r\nThe state of pin 14 is set to LOW (0), regardless of what it was before. If a previous script has set the pin to HIGH and then finishes, or the script restarts for whatever reason, the pin is always reset to LOW.\r\n\r\nIs it possible to have the pin registered, but not have the start altered until it is done so manually using write or writeSync?\r\n\r\nI appreciate your time."},"comment":{"url":"https://api.github.com/repos/fivdi/onoff/issues/comments/135867345","html_url":"https://github.com/fivdi/onoff/issues/36#issuecomment-135867345","issue_url":"https://api.github.com/repos/fivdi/onoff/issues/36","id":135867345,"user":{"login":"fivdi","id":2605378,"avatar_url":"https://avatars.githubusercontent.com/u/2605378?v=3","gravatar_id":"","url":"https://api.github.com/users/fivdi","html_url":"https://github.com/fivdi","followers_url":"https://api.github.com/users/fivdi/followers","following_url":"https://api.github.com/users/fivdi/following{/other_user}","gists_url":"https://api.github.com/users/fivdi/gists{/gist_id}","starred_url":"https://api.github.com/users/fivdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fivdi/subscriptions","organizations_url":"https://api.github.com/users/fivdi/orgs","repos_url":"https://api.github.com/users/fivdi/repos","events_url":"https://api.github.com/users/fivdi/events{/privacy}","received_events_url":"https://api.github.com/users/fivdi/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T19:30:26Z","updated_at":"2015-08-28T19:30:26Z","body":"I'm going to close this one as onoff isn't the correct place for saving/restoring the state of pins between different runs of the application."}}