change every error you have found in i2c.coffee,like readByte,readBytes etc...
在 2014年12月13日星期六 UTC+8上午6:34:13,jamil...@gmail.com写道: > > I'm running the test.js , a simple script to obtain raw data from the > sensor on BBB rev C with debian, it happens to print out the output > however, there is this error thrown at the end: > > /usr/local/lib/node_modules/mpu9150/node_modules/i2c/lib/i2c.coffee:111 > return callback(err, actualBuffer); > ^ > TypeError: undefined is not a function > at Object._onImmediate > (/usr/local/lib/node_modules/mpu9150/node_modules/i2c/lib/i2c.coffee:111:18) > at processImmediate as _immediateCallback > > > here is the test program: > > 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); > > > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.