LIS3DH Accelerometer
The LIS3DH is an ultra-low-power, high performance 3-axis digital acceleration sensor.
You can use the LIS3DH (About Modules) module with the LIS3DH as follows:
I2C
I2C1.setup({sda:..., scl:...);
var acc = require("LIS3DH").connectI2C(I2C1);
print(acc.read()); // prints { x: ..., y: ..., z: ... }
Note: you can supply addr
to connectI2C
's second argument to set an I2C
address if it is non-standard.
Reference
LIS3DH.prototype.off = function () { ... }
LIS3DH.prototype.read = function () { ... }
function (options, r, w) { ... }
exports.connectI2C = function (i2c, options) { ... }
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.