{"action":"created","issue":{"url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/79","repository_url":"https://api.github.com/repos/jwhitehorn/pi_piper","labels_url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/79/comments","events_url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/79/events","html_url":"https://github.com/jwhitehorn/pi_piper/issues/79","id":168516846,"number":79,"title":"Can't read correct values from a rpi B 1","user":{"login":"jvalencia80","id":456311,"avatar_url":"https://avatars.githubusercontent.com/u/456311?v=3","gravatar_id":"","url":"https://api.github.com/users/jvalencia80","html_url":"https://github.com/jvalencia80","followers_url":"https://api.github.com/users/jvalencia80/followers","following_url":"https://api.github.com/users/jvalencia80/following{/other_user}","gists_url":"https://api.github.com/users/jvalencia80/gists{/gist_id}","starred_url":"https://api.github.com/users/jvalencia80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvalencia80/subscriptions","organizations_url":"https://api.github.com/users/jvalencia80/orgs","repos_url":"https://api.github.com/users/jvalencia80/repos","events_url":"https://api.github.com/users/jvalencia80/events{/privacy}","received_events_url":"https://api.github.com/users/jvalencia80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-31T13:02:06Z","updated_at":"2016-07-31T15:36:05Z","closed_at":null,"body":"I'm using pin 4 (gpio 4) with this simple code:\r\n\r\n````\r\nrequire \"pi_piper\"\r\n\r\npin = PiPiper::Pin.new(:pin => 4, :direction => :in)\r\n\r\nloop do\r\n        puts pin.value\r\n        sleep 0.1\r\nend\r\n````\r\n\r\nI use a jumper and connect it to gpio4 and 3.3V (top-left).\r\n\r\nIt always shows a 0. If I change the jumper to GND (bottom-left), I also get a 0.\r\n\r\nReading the values from /sys/..., it shows correctly a 1 or 0, but the pi_piper script will always show a 0.\r\n\r\nWhat's wrong? (I'm using pi_piper 2.0)\r\n\r\nSee the attached screenshot\r\n![2016-07-31-140056_1920x1080_scrot](https://cloud.githubusercontent.com/assets/456311/17276656/5ad8b1f0-5727-11e6-85f7-a6bd28941636.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/comments/236436662","html_url":"https://github.com/jwhitehorn/pi_piper/issues/79#issuecomment-236436662","issue_url":"https://api.github.com/repos/jwhitehorn/pi_piper/issues/79","id":236436662,"user":{"login":"elmatou","id":292021,"avatar_url":"https://avatars.githubusercontent.com/u/292021?v=3","gravatar_id":"","url":"https://api.github.com/users/elmatou","html_url":"https://github.com/elmatou","followers_url":"https://api.github.com/users/elmatou/followers","following_url":"https://api.github.com/users/elmatou/following{/other_user}","gists_url":"https://api.github.com/users/elmatou/gists{/gist_id}","starred_url":"https://api.github.com/users/elmatou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmatou/subscriptions","organizations_url":"https://api.github.com/users/elmatou/orgs","repos_url":"https://api.github.com/users/elmatou/repos","events_url":"https://api.github.com/users/elmatou/events{/privacy}","received_events_url":"https://api.github.com/users/elmatou/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T15:36:05Z","updated_at":"2016-07-31T15:36:05Z","body":"just update the value in memory with `pin.read`.\r\nI'm not a huge fan of this implementation, but we don't want to change it for compatibility sake."}}
{"actor":{"display_login":"elmatou"}}