{"action":"closed","issue":{"url":"https://api.github.com/repos/peterschwarz/clj-gpio/issues/6","labels_url":"https://api.github.com/repos/peterschwarz/clj-gpio/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/peterschwarz/clj-gpio/issues/6/comments","events_url":"https://api.github.com/repos/peterschwarz/clj-gpio/issues/6/events","html_url":"https://github.com/peterschwarz/clj-gpio/issues/6","id":123502814,"number":6,"title":"clj-gpio as unprivileged user","user":{"login":"engblom","id":11077545,"avatar_url":"https://avatars.githubusercontent.com/u/11077545?v=3","gravatar_id":"","url":"https://api.github.com/users/engblom","html_url":"https://github.com/engblom","followers_url":"https://api.github.com/users/engblom/followers","following_url":"https://api.github.com/users/engblom/following{/other_user}","gists_url":"https://api.github.com/users/engblom/gists{/gist_id}","starred_url":"https://api.github.com/users/engblom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engblom/subscriptions","organizations_url":"https://api.github.com/users/engblom/orgs","repos_url":"https://api.github.com/users/engblom/repos","events_url":"https://api.github.com/users/engblom/events{/privacy}","received_events_url":"https://api.github.com/users/engblom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-22T15:36:29Z","updated_at":"2015-12-29T21:52:14Z","closed_at":"2015-12-29T21:52:14Z","body":"Recent changes in Raspbian (Jessie based) has added the gpio user group, exposing /sys/class/gpio/* to all users belonging to the gpio group. Recent changes to Pi4J allows you to manipulate gpio from an unprivileged account. (details at http://www.raspihub.com/go/750649b302ba1643800a0f4391965c5a22127e8194eeab93d33fa877bb42df7e).\r\n\r\nIt would be nice if also clj-gpio could benefit from this. Some changes are needed.\r\n\r\n$ ls -l /sys/class/gpio/\r\ntotal 0\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 export\r\nlrwxrwxrwx 1 root gpio    0 Dec 22 11:38 gpio4 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpio4\r\nlrwxrwxrwx 1 root gpio    0 Dec 22 11:17 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:17 unexport\r\n\r\nls -l /sys/class/gpio/gpio4/\r\ntotal 0\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 active_low\r\nlrwxrwxrwx 1 root gpio    0 Dec 22 11:38 device -> ../../../3f200000.gpio\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 direction\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 edge\r\nlrwxrwxrwx 1 root gpio    0 Dec 22 11:38 subsystem -> ../../../../../../class/gpio\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 uevent\r\n-rwxrwx--- 1 root gpio 4096 Dec 22 11:38 value\r\n\r\n'id' shows I am in the gpio group.\r\n\r\nFrom a repl:\r\n\r\nled.core=> (def port (open-port 4))\r\n\r\nCompilerException java.io.FileNotFoundException: /sys/class/gpio/gpio4/value (Permission denied), compiling:(form-init7914451877660249273.clj:1:11)\r\n\r\n"}}