{"action":"closed","issue":{"url":"https://api.github.com/repos/fivdi/onoff/issues/73","repository_url":"https://api.github.com/repos/fivdi/onoff","labels_url":"https://api.github.com/repos/fivdi/onoff/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/fivdi/onoff/issues/73/comments","events_url":"https://api.github.com/repos/fivdi/onoff/issues/73/events","html_url":"https://github.com/fivdi/onoff/issues/73","id":234713365,"number":73,"title":"Do I have to hold value in a loop?","user":{"login":"c0debreaker","id":3783931,"avatar_url":"https://avatars2.githubusercontent.com/u/3783931?v=3","gravatar_id":"","url":"https://api.github.com/users/c0debreaker","html_url":"https://github.com/c0debreaker","followers_url":"https://api.github.com/users/c0debreaker/followers","following_url":"https://api.github.com/users/c0debreaker/following{/other_user}","gists_url":"https://api.github.com/users/c0debreaker/gists{/gist_id}","starred_url":"https://api.github.com/users/c0debreaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0debreaker/subscriptions","organizations_url":"https://api.github.com/users/c0debreaker/orgs","repos_url":"https://api.github.com/users/c0debreaker/repos","events_url":"https://api.github.com/users/c0debreaker/events{/privacy}","received_events_url":"https://api.github.com/users/c0debreaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-06-09T03:38:01Z","updated_at":"2017-06-10T03:30:24Z","closed_at":"2017-06-10T03:30:24Z","body":"I wrote this code and I see my relay module turns on like a split seconds and dies quickly. So looks like relay modules doesn't work like a light switch. We have to tell in continuously with a value of 1. Am I right?\r\n\r\n```js\r\nvar Gpio = require('onoff').Gpio;\r\nvar relay = new Gpio(4, 'out');\r\nrelay.writeSync(1);\r\n```"}}
{"actor":{"display_login":"c0debreaker"}}