pisky-mpu9150

A fork of mpu9150 to communicate with the MPU-9150 9dof chip.

Usage no npm install needed!

<script type="module">
  import piskyMpu9150 from 'https://cdn.skypack.dev/pisky-mpu9150';
</script>

README

mpu9150

This is a development fork from (https://github.com/shrkey/mpu9150) by Shrky.

A node.js library for communicating with the MPU-9150 9 Degrees of Freedom board.

Based initially on the mpu6050 library (https://github.com/jstapels/mpu6050) by Jason Stapels

Install

npm install mpu9150

How to use it

var mpu9150 = require('mpu9150');

// Instantiate and initialize.
var mpu = new mpu9150();
mpu.initialize();

// Test the connection before using.
if (mpu.testConnection()) {
  console.log(mpu.getMotion9());
}

// Put the MPU9150 back to sleep.
mpu.setSleepEnabled(1);