{"action":"created","issue":{"url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/2","labels_url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/2/comments","events_url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/2/events","html_url":"https://github.com/firmata/ConfigurableFirmata/issues/2","id":69470421,"number":2,"title":"stepper motor library feedback to pc","user":{"login":"soundanalogous","id":401539,"avatar_url":"https://avatars.githubusercontent.com/u/401539?v=3","gravatar_id":"","url":"https://api.github.com/users/soundanalogous","html_url":"https://github.com/soundanalogous","followers_url":"https://api.github.com/users/soundanalogous/followers","following_url":"https://api.github.com/users/soundanalogous/following{/other_user}","gists_url":"https://api.github.com/users/soundanalogous/gists{/gist_id}","starred_url":"https://api.github.com/users/soundanalogous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soundanalogous/subscriptions","organizations_url":"https://api.github.com/users/soundanalogous/orgs","repos_url":"https://api.github.com/users/soundanalogous/repos","events_url":"https://api.github.com/users/soundanalogous/events{/privacy}","received_events_url":"https://api.github.com/users/soundanalogous/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firmata/ConfigurableFirmata/labels/configurable","name":"configurable","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-19T22:22:23Z","updated_at":"2015-04-19T22:22:26Z","closed_at":null,"body":"_From @FineLineAutomation on March 23, 2014 20:8_\n\nIs there a mechanism in the stepper motor library to communicate back to the PC how many steps the stepper motor has moved? Trying to implement a live updated DRO on the PC side.\n\n_Copied from original issue: firmata/arduino#125_"},"comment":{"url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/comments/94319608","html_url":"https://github.com/firmata/ConfigurableFirmata/issues/2#issuecomment-94319608","issue_url":"https://api.github.com/repos/firmata/ConfigurableFirmata/issues/2","id":94319608,"user":{"login":"soundanalogous","id":401539,"avatar_url":"https://avatars.githubusercontent.com/u/401539?v=3","gravatar_id":"","url":"https://api.github.com/users/soundanalogous","html_url":"https://github.com/soundanalogous","followers_url":"https://api.github.com/users/soundanalogous/followers","following_url":"https://api.github.com/users/soundanalogous/following{/other_user}","gists_url":"https://api.github.com/users/soundanalogous/gists{/gist_id}","starred_url":"https://api.github.com/users/soundanalogous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soundanalogous/subscriptions","organizations_url":"https://api.github.com/users/soundanalogous/orgs","repos_url":"https://api.github.com/users/soundanalogous/repos","events_url":"https://api.github.com/users/soundanalogous/events{/privacy}","received_events_url":"https://api.github.com/users/soundanalogous/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T22:22:25Z","updated_at":"2015-04-19T22:22:25Z","body":"_From @DomAmato on January 10, 2015 21:34_\n\nYeah my implementation wasn't particularly pretty, I think it should probably check the length of argc too to make sure that all the values are actually given. perhaps adding to the interface where 8 means feedback and then & 0x07 to figure out the interface type something like this:\r\n\r\n    enum Interface {\r\n\t\tDRIVER = 1,\r\n\t\tTWO_WIRE = 2,\r\n\t\tFOUR_WIRE = 4,\r\n\t\tHAS_FEEDBACK = 8\r\n\t};\r\n\r\nso that \r\n\r\n    if(interfaceType & 0x08)\r\n       we have feedback pins\r\n      if(interfaceType & 0x07 == Stepper::DRIVER) ...\r\n    else {\r\n       we don't have feedback pins\r\n    }\r\n\r\n"}}