{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/678","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/678/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/678/events","html_url":"https://github.com/rwaldron/johnny-five/issues/678","id":64994402,"number":678,"title":"RangeError with MPU6050 on Edison","user":{"login":"GrossDesignCo","id":5007574,"avatar_url":"https://avatars.githubusercontent.com/u/5007574?v=3","gravatar_id":"","url":"https://api.github.com/users/GrossDesignCo","html_url":"https://github.com/GrossDesignCo","followers_url":"https://api.github.com/users/GrossDesignCo/followers","following_url":"https://api.github.com/users/GrossDesignCo/following{/other_user}","gists_url":"https://api.github.com/users/GrossDesignCo/gists{/gist_id}","starred_url":"https://api.github.com/users/GrossDesignCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrossDesignCo/subscriptions","organizations_url":"https://api.github.com/users/GrossDesignCo/orgs","repos_url":"https://api.github.com/users/GrossDesignCo/repos","events_url":"https://api.github.com/users/GrossDesignCo/events{/privacy}","received_events_url":"https://api.github.com/users/GrossDesignCo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2015-03-28T22:00:19Z","updated_at":"2016-01-31T14:21:23Z","closed_at":"2015-04-01T02:54:37Z","body":"Hi there, I'm working on an Intel Edison (arduino breakout board) & running into the following error\r\n```\r\nRangeError: Trying to access beyond buffer length\r\n    at checkOffset (buffer.js:582:11)\r\n    at Buffer.readUInt8 (buffer.js:588:5)\r\n    at Galileo.<anonymous> (/home/root/node_modules/galileo-io/lib/galileo.js:592:24)\r\n    at wrapper [as _onTimeout] (timers.js:258:14)\r\n    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)\r\n```\r\n\r\nwhen I run anything, including the basic Accelerometer script (https://github.com/rwaldron/johnny-five/blob/master/docs/accelerometer-mpu6050.md)\r\n\r\nHere's my modified version to incorporate the edison/gallileo-io plugin\r\n```\r\nvar five = require(\"johnny-five\");\r\nvar Edison = require(\"galileo-io\");\r\nvar board = new five.Board({\r\n  io: new Edison()\r\n});\r\n\r\nboard.on(\"ready\", function() {\r\n  var accelerometer = new five.Accelerometer({\r\n    controller: \"MPU6050\"\r\n  });\r\n\r\n  accelerometer.on(\"data\", function(data) {\r\n    console.log(\"raw\", data);\r\n  });\r\n});\r\n```\r\n\r\nIt doesn't look like this occurs on other platforms, could it be a specific quirk of the Edison?"},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/177511183","html_url":"https://github.com/rwaldron/johnny-five/issues/678#issuecomment-177511183","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/678","id":177511183,"user":{"login":"mulderp","id":220560,"avatar_url":"https://avatars.githubusercontent.com/u/220560?v=3","gravatar_id":"","url":"https://api.github.com/users/mulderp","html_url":"https://github.com/mulderp","followers_url":"https://api.github.com/users/mulderp/followers","following_url":"https://api.github.com/users/mulderp/following{/other_user}","gists_url":"https://api.github.com/users/mulderp/gists{/gist_id}","starred_url":"https://api.github.com/users/mulderp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulderp/subscriptions","organizations_url":"https://api.github.com/users/mulderp/orgs","repos_url":"https://api.github.com/users/mulderp/repos","events_url":"https://api.github.com/users/mulderp/events{/privacy}","received_events_url":"https://api.github.com/users/mulderp/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T14:21:23Z","updated_at":"2016-01-31T14:21:23Z","body":"Just a small note that I tried the MPU-6050 examples on an Intel Edison mini breakout board, but unforuntately it was not working yet. The problem might be 1.8 V levels of I2C. Some notes here: http://electronics.stackexchange.com/questions/214485/i2c-with-1-8v-levels-without-level-shifters"}}