hp

hmc5883l-pi

Node.js implementation of HMC5883L access

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

0.7KB

License

BSD-2-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100