UNPKG

mpu6050-dmp

Version:

Quick and dirty Node.js module for reading DMP-processed yaw/pitch/roll and rotation values from an MPU6050

9 lines (7 loc) 184 B
var mpu = require('./../build/Debug/binding'); if (mpu.initialize()) { setInterval(function () { console.log(mpu.getRotation()); console.log(mpu.getAttitude()); }, 10); }