1.0.3 • Published 3 years ago

ezx750ups v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ezX750UPS

树莓派配置

sudo raspi-config

选择 5 Interfacing Options

选择 I2C - Enable/Disable automatic loading

选择 "Yes"

安装

npm install ezx750ups --save

使用

const EZX750 = require('ezx750ups');
let ezX750Mgr = EZX750(0x36);

// 获取电压
let vol = ezX750Mgr.getVoltage();
console.log('vol', vol);


let cap = ezX750Mgr.getCapacity();
console.log('cap', cap);

有技术问题可微信我

wechat

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago