3.0.0 • Published 1 year ago

pi-volts v3.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
1 year ago

pi-volts

Measure the volts on a Raspberry Pi.

Usage

const piVolts = require("pi-volts");

piVolts.measure((err, volts) => {
	if (err) console.error(err);
	else console.log("core volts: " + volts);
});

piVolts.measure((err, volts) => {
	if (err) console.error(err);
	else console.log("sdram_p volts: " + volts);
}, { id: "sdram_p" });

API

measure(function callback(err, volts) , options)

Measures the volts and calls the callback with the error and volts.

options takes an object with the property "id", which can be one of "core", "sdram_c", "sdram_i" or "sdram_p" (defaults to core.)

3.0.0

1 year ago

2.0.0

7 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago