Socket
Book a DemoInstallSign in
Socket

hmc5883l-pi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hmc5883l-pi

Module to read from the HMC5883L Magnetometer

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

HMC5883L

FAQs

Package last updated on 15 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts