@name-industry/ni-ina219
Version:
Module for using the WaveShare UPS Raspberry Pi Hat that has an embedded Texas Instruments INA219 sensor.
15 lines (9 loc) • 312 B
JavaScript
import I2CBus from "../../../Bus/I2C/index.js";
import { REGISTERS } from "../../../Constants/index.js";
class BusVoltageService {
constructor() {};
readRegister = async function () {
return await I2CBus.readRegister(REGISTERS.BUS_VOLTAGE_R);
}
}
export default new BusVoltageService();