{"action":"created","issue":{"url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/157","labels_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/157/comments","events_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/157/events","html_url":"https://github.com/jrowberg/i2cdevlib/pull/157","id":65206716,"number":157,"title":"I2Cdev library added for a Raspberry Pi, with a few examples","user":{"login":"hamish2014","id":7496850,"avatar_url":"https://avatars.githubusercontent.com/u/7496850?v=3","gravatar_id":"","url":"https://api.github.com/users/hamish2014","html_url":"https://github.com/hamish2014","followers_url":"https://api.github.com/users/hamish2014/followers","following_url":"https://api.github.com/users/hamish2014/following{/other_user}","gists_url":"https://api.github.com/users/hamish2014/gists{/gist_id}","starred_url":"https://api.github.com/users/hamish2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamish2014/subscriptions","organizations_url":"https://api.github.com/users/hamish2014/orgs","repos_url":"https://api.github.com/users/hamish2014/repos","events_url":"https://api.github.com/users/hamish2014/events{/privacy}","received_events_url":"https://api.github.com/users/hamish2014/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-30T13:03:57Z","updated_at":"2015-04-17T09:05:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jrowberg/i2cdevlib/pulls/157","html_url":"https://github.com/jrowberg/i2cdevlib/pull/157","diff_url":"https://github.com/jrowberg/i2cdevlib/pull/157.diff","patch_url":"https://github.com/jrowberg/i2cdevlib/pull/157.patch"},"body":"Hi,\r\n\r\nThanks for the i2cdevlib.\r\nHere are my additions for a Raspberry Pi, should you wish to use them.\r\n\r\nRegards,\r\n"},"comment":{"url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/comments/93948320","html_url":"https://github.com/jrowberg/i2cdevlib/pull/157#issuecomment-93948320","issue_url":"https://api.github.com/repos/jrowberg/i2cdevlib/issues/157","id":93948320,"user":{"login":"hamish2014","id":7496850,"avatar_url":"https://avatars.githubusercontent.com/u/7496850?v=3","gravatar_id":"","url":"https://api.github.com/users/hamish2014","html_url":"https://github.com/hamish2014","followers_url":"https://api.github.com/users/hamish2014/followers","following_url":"https://api.github.com/users/hamish2014/following{/other_user}","gists_url":"https://api.github.com/users/hamish2014/gists{/gist_id}","starred_url":"https://api.github.com/users/hamish2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamish2014/subscriptions","organizations_url":"https://api.github.com/users/hamish2014/orgs","repos_url":"https://api.github.com/users/hamish2014/repos","events_url":"https://api.github.com/users/hamish2014/events{/privacy}","received_events_url":"https://api.github.com/users/hamish2014/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T09:05:29Z","updated_at":"2015-04-17T09:05:29Z","body":"Would this approach work?\r\n\r\n1. Adding to the line to Rasbperry Pi main C++ file\r\n  #define __RASPBERRYPI__\r\n2. Then in the MPU6050 or BMP180 libraries \r\n #ifdef __RASPBERRYPI__  #include <math.h> #endif\r\n"}}