Git Product home page Git Product logo

mpu6050's People

Contributors

jstapels avatar nkolban avatar rstets avatar rzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mpu6050's Issues

Buffer variable leaks into global scope

should use var buffer = instead of buffer =. Also adding "use strict"; is perhaps worth considering.

I generally caught the issue using mocha in my project for integration testing. Could consider adding here jshint perhaps if you're still interested in this library.

callback

HI!

in your library can I use the callback() ? you provide an example?

Thank you.

Initialize fails

Hey, I got a problem.

This code works:
var i2c = require('i2c');
var address = 0x68;
var wire = new i2c(address, {device: '/dev/i2c-1'});

But this one not:
var mpu6050 = require( 'mpu6050' );
var mpu = new mpu6050('/dev/i2c-1', 0x68);
if( mpu.initialize() ){
console.log( "success" );
} else {
console.log( "fail" );
}

I think there is a problem with the address, but I'm not sure. Can you help me?

Undefined is not a function

I tried the MPU6050 code but it throws the following error on the mpu.setSleepEnabled(1);

/usr/lib/node_modules/i2c/lib/i2c.coffee:136
return callback(err, actualBuffer);
^
TypeError: undefined is not a function
at Immediate._onImmediate (/usr/lib/node_modules/i2c/lib/i2c.coffee:85:9)
at processImmediate as _immediateCallback

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.