{"action":"opened","issue":{"url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/147","labels_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/147/comments","events_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/147/events","html_url":"https://github.com/jrowberg/i2cdevlib/issues/147","id":62568319,"number":147,"title":"suggested functionality for I2Cdev::readWords","user":{"login":"mogar","id":673822,"avatar_url":"https://avatars.githubusercontent.com/u/673822?v=3","gravatar_id":"","url":"https://api.github.com/users/mogar","html_url":"https://github.com/mogar","followers_url":"https://api.github.com/users/mogar/followers","following_url":"https://api.github.com/users/mogar/following{/other_user}","gists_url":"https://api.github.com/users/mogar/gists{/gist_id}","starred_url":"https://api.github.com/users/mogar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogar/subscriptions","organizations_url":"https://api.github.com/users/mogar/orgs","repos_url":"https://api.github.com/users/mogar/repos","events_url":"https://api.github.com/users/mogar/events{/privacy}","received_events_url":"https://api.github.com/users/mogar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T02:30:24Z","updated_at":"2015-03-18T02:30:24Z","closed_at":null,"body":"I'm using I2Cdev with an IC that has a slightly non-standard interface. When reading from the chip, it expects a request in the form: chip address, register address, then data. It doesn't perform a STOP on the bus before reading in the data.\r\n\r\nI2Cdev does everything I need, but when reading words it ends the connection after setting the register address and then starts a new connection, sends the chip address again, and then gets data.\r\n\r\nI'd like to adapt the library by adding an optional `stop` input to readWords() that would change lines 418 and 419 to:\r\n\r\n> Wire.endTransmission(stop);\r\n> if (!stop) Wire.beginTransmission(devAddr);\r\n\r\nIf you'd be ok with this, I can open up a PR for it."}}