0.0.5 • Published 8 years ago

hmc5883l-pi v0.0.5

Weekly downloads
1
License
BSD
Repository
github
Last release
8 years ago

hcm5883l-pi

Access to the HCM5883L digital compass on the Raspberry Pi.

install

$ npm install hcm5883l-pi

Usage

The package provides a single method called readMag() that returns an object containing the x, y and z portions of the vector.

var HMC5883L = require("hmc5883l-pi");
var data = HMC5883L.readMag();
console.log("Got compass data!");
console.dir(data);
console.log("x=" + data.x + ", y=" + data.y + ", z=" + data.z);
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago