Miss any of our Open RFC calls?Watch the recordings here! »

i2c-mpu6050

2.3.0 • Public • Published

node-i2c-mpu6050

Read data from MPU6050 with i2c.

var i2c = require('i2c-bus');
var MPU6050 = require('i2c-mpu6050');
 
var address = 0x68;
var i2c1 = i2c.openSync(1);
 
var sensor = new MPU6050(i2c1, address);
 
var data = sensor.readSync();
console.log(data);

Values are in degrees.

Docs

Install

npm i i2c-mpu6050

DownloadsWeekly Downloads

18

Version

2.3.0

License

MIT

Unpacked Size

8.94 kB

Total Files

6

Last publish

Collaborators

  • avatar