{"action":"created","issue":{"url":"https://api.github.com/repos/fivdi/i2c-bus/issues/19","repository_url":"https://api.github.com/repos/fivdi/i2c-bus","labels_url":"https://api.github.com/repos/fivdi/i2c-bus/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/fivdi/i2c-bus/issues/19/comments","events_url":"https://api.github.com/repos/fivdi/i2c-bus/issues/19/events","html_url":"https://github.com/fivdi/i2c-bus/issues/19","id":150497731,"number":19,"title":"Use of CMD parameter","user":{"login":"shekit","id":8786917,"avatar_url":"https://avatars.githubusercontent.com/u/8786917?v=3","gravatar_id":"","url":"https://api.github.com/users/shekit","html_url":"https://github.com/shekit","followers_url":"https://api.github.com/users/shekit/followers","following_url":"https://api.github.com/users/shekit/following{/other_user}","gists_url":"https://api.github.com/users/shekit/gists{/gist_id}","starred_url":"https://api.github.com/users/shekit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shekit/subscriptions","organizations_url":"https://api.github.com/users/shekit/orgs","repos_url":"https://api.github.com/users/shekit/repos","events_url":"https://api.github.com/users/shekit/events{/privacy}","received_events_url":"https://api.github.com/users/shekit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-23T00:01:18Z","updated_at":"2016-04-23T11:56:35Z","closed_at":null,"body":"Hi,\r\n\r\nI had a few questions which are unclear from the documentation. I was hoping you could help clarify.\r\n\r\n1. What is the command parameter used for in functions such as `bus.writeByte(addr, cmd, byte, cb)`\r\n2. What is the difference between sendByte and writeByte\r\n3. What is the difference between plain i2c and SMBus?\r\n"},"comment":{"url":"https://api.github.com/repos/fivdi/i2c-bus/issues/comments/213726447","html_url":"https://github.com/fivdi/i2c-bus/issues/19#issuecomment-213726447","issue_url":"https://api.github.com/repos/fivdi/i2c-bus/issues/19","id":213726447,"user":{"login":"bidhouilles","id":17961650,"avatar_url":"https://avatars.githubusercontent.com/u/17961650?v=3","gravatar_id":"","url":"https://api.github.com/users/bidhouilles","html_url":"https://github.com/bidhouilles","followers_url":"https://api.github.com/users/bidhouilles/followers","following_url":"https://api.github.com/users/bidhouilles/following{/other_user}","gists_url":"https://api.github.com/users/bidhouilles/gists{/gist_id}","starred_url":"https://api.github.com/users/bidhouilles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bidhouilles/subscriptions","organizations_url":"https://api.github.com/users/bidhouilles/orgs","repos_url":"https://api.github.com/users/bidhouilles/repos","events_url":"https://api.github.com/users/bidhouilles/events{/privacy}","received_events_url":"https://api.github.com/users/bidhouilles/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T11:56:35Z","updated_at":"2016-04-23T11:56:35Z","body":"Hello,\nI'm not an expert but I have a raspberry which communicate with Atmega with I2C (sync and async way), doest it make me an expert ? :-)1. I do not use this api but I can tell you what I understood in the exmple : you can pass a cmd and parameter (byte) specific to your device2. Good question ! I use only I2CWrite and I2CReadSync. Sorry... 3. SMB is an evolution of the I2C, many device are I2C but not SMB. You can find API (don't remember where) which API compatible on your device.\nI hope I could have help you.\nThx\nDavid. \n\n    Le Samedi 23 avril 2016 2h01, Abhishek Singh <notifications@github.com> a écrit :\n \n\n Hi,I had a few questions which are unclear from the documentation. I was hoping you could help clarify.   \n   - What is the command parameter used for in functions such as bus.writeByte(addr, cmd, byte, cb)\n   - What is the difference between sendByte and writeByte\n   - What is the difference between plain i2c and SMBus?\n—\nYou are receiving this because you are subscribed to this thread.\nReply to this email directly or view it on GitHub  \n\n  "}}