{"action":"created","issue":{"url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/272","labels_url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/272/comments","events_url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/272/events","html_url":"https://github.com/intel-iot-devkit/upm/issues/272","id":108523642,"number":272,"title":"pyupm_rotaryencoder returns decreasing values","user":{"login":"gaiar","id":756432,"avatar_url":"https://avatars.githubusercontent.com/u/756432?v=3","gravatar_id":"","url":"https://api.github.com/users/gaiar","html_url":"https://github.com/gaiar","followers_url":"https://api.github.com/users/gaiar/followers","following_url":"https://api.github.com/users/gaiar/following{/other_user}","gists_url":"https://api.github.com/users/gaiar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaiar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaiar/subscriptions","organizations_url":"https://api.github.com/users/gaiar/orgs","repos_url":"https://api.github.com/users/gaiar/repos","events_url":"https://api.github.com/users/gaiar/events{/privacy}","received_events_url":"https://api.github.com/users/gaiar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T09:02:38Z","updated_at":"2015-09-28T17:55:44Z","closed_at":null,"body":"I have RotaryEncoder v1.1 from [Grove Indoor Environment Kit](http://www.seeedstudio.com/depot/Grove-Indoor-Environment-Kit-for-Intel-Edison-p-2427.html).\r\n\r\nI tried to use it with code example from [IoT DevZone](https://software.intel.com/en-us/iot/hardware/sensors/grove-rotary-encoder), but for some reasons encoder returns me only decreasing values in both rotating directions. My encoder is connected to D2 pin.\r\n\r\n![Run example](https://cloud.githubusercontent.com/assets/756432/10121979/57b1582a-650f-11e5-9b28-9a0c78a59986.png)\r\n\r\nI asked Intel community for [help](https://communities.intel.com/message/335997#335997), for seems it is not common situation. So I think it is either something in upm library, or I have broken piece of hardware."},"comment":{"url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/comments/143824927","html_url":"https://github.com/intel-iot-devkit/upm/issues/272#issuecomment-143824927","issue_url":"https://api.github.com/repos/intel-iot-devkit/upm/issues/272","id":143824927,"user":{"login":"Propanu","id":5123898,"avatar_url":"https://avatars.githubusercontent.com/u/5123898?v=3","gravatar_id":"","url":"https://api.github.com/users/Propanu","html_url":"https://github.com/Propanu","followers_url":"https://api.github.com/users/Propanu/followers","following_url":"https://api.github.com/users/Propanu/following{/other_user}","gists_url":"https://api.github.com/users/Propanu/gists{/gist_id}","starred_url":"https://api.github.com/users/Propanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Propanu/subscriptions","organizations_url":"https://api.github.com/users/Propanu/orgs","repos_url":"https://api.github.com/users/Propanu/repos","events_url":"https://api.github.com/users/Propanu/events{/privacy}","received_events_url":"https://api.github.com/users/Propanu/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T17:55:44Z","updated_at":"2015-09-28T17:55:44Z","body":"Hi, I only have v1.0 for the Rotary Encoder and the examples work fine with that. I do recall that the interrupt edge mode was set to rising only for compatibility with both Galileo and Edison, and that's not ideal. Also, there is no HW or SW debouncing done, that would have to be addressed in the application. A side effect of this was that sometimes, at the end of a counterclockwise turn, the position would change in the other direction by 1 or 2 units. Nothing near what you're showing though, as while turning you would still get the right values.\r\n\r\nIt might be that v1.1 was changed and behaves differently. I will try to get my hands on one and look into this further!"}}