LSM9DS0G
The LSM9DS0G uses gyroscopic sensing to detect 3 degrees of freedom.
For more information click here.
How To Connect
Cylon.robot({ connections: { arduino: { adaptor: 'firmata', port: '/dev/tty.usbmodem1421' } }, devices: { gyro: { driver: 'lsm9ds0g' } }, });
How To Use
var Cylon = require('cylon'); Cylon.robot({ connections: { arduino: { adaptor: 'firmata', port: '/dev/tty.usbmodem1421' } }, devices: { gyro: { driver: 'lsm9ds0g' } }, work: function(my) { every((1).second(), function() { my.gyro.getGyro(function(err, data) { console.log(data); }); }); } }).start();
Commands
getGyro
Gets the value of Gyroscope.
Params
-
callback (
Function
) function to be invoked with data
Returns
- (
undefined
)