{"action":"closed","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/374","repository_url":"https://api.github.com/repos/ev3dev/ev3dev","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/374/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/374/events","html_url":"https://github.com/ev3dev/ev3dev/issues/374","id":98391382,"number":374,"title":"[brickpi] nxt-touch sensor problem","user":{"login":"Ho33e5","id":9576584,"avatar_url":"https://avatars.githubusercontent.com/u/9576584?v=3","gravatar_id":"","url":"https://api.github.com/users/Ho33e5","html_url":"https://github.com/Ho33e5","followers_url":"https://api.github.com/users/Ho33e5/followers","following_url":"https://api.github.com/users/Ho33e5/following{/other_user}","gists_url":"https://api.github.com/users/Ho33e5/gists{/gist_id}","starred_url":"https://api.github.com/users/Ho33e5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ho33e5/subscriptions","organizations_url":"https://api.github.com/users/Ho33e5/orgs","repos_url":"https://api.github.com/users/Ho33e5/repos","events_url":"https://api.github.com/users/Ho33e5/events{/privacy}","received_events_url":"https://api.github.com/users/Ho33e5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/BrickPi","name":"BrickPi","color":"207de5"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/sensors","name":"sensors","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ev3dev/ev3dev/milestones/3","html_url":"https://github.com/ev3dev/ev3dev/milestones/ev3dev-next","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/milestones/3/labels","id":1478678,"number":3,"title":"ev3dev-next","description":"Tracking for the next image release","creator":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":11,"state":"open","created_at":"2015-12-30T23:36:51Z","updated_at":"2016-04-11T03:19:51Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-07-31T13:31:54Z","updated_at":"2016-04-11T03:19:51Z","closed_at":"2016-04-11T03:19:51Z","body":"I have a raspberry pi 1 B (rev2) with [this](https://github.com/ev3dev/ev3dev/blob/master/release-notes/rpi-ev3dev-jessie-2015-05-13.img-release-notes.md) ev3dev image.\r\n\r\nWhat I do to manually load the sensor:\r\n```bash\r\n$ echo nxt-analog > /sys/class/lego-port/port0/mode\r\n$ echo lego-nxt-touch > /sys/class/lego-port/port0/set_device\r\n```\r\n\r\nThe device `/sys/class/lego-sensor/sensor1` (why not `sensor0`?) appears, but the `value0` property doesn't reflect the state of the touch sensor (it's blocked to `1`).\r\n\r\nInterestingly, the `bin_data` property seem to work a bit more: when the button is pushed i get a random byte between `\\xd8` and `\\xdc` for the first byte and `\\x02` for the second. When the button is released i get the first byte between `m` and `r` and `\\0x03` for the second. Is this the expected behavior?"}}