Open norgeous opened 7 years ago
@norgeous pull requests welcome ...
I will attempt to get this done today (battery % only). I imagine that the code will be quite similar to chipio.BatteryVoltage();
and will be a five.sensor
. Will let you know how I get on.
Making a PR here https://github.com/sandeepmistry/node-chip-io/pull/43
So it currently supports the battery voltage via:
var BAT_VOLT_MSB_REGISTER = 0x78;
(in/lib/axp209.js
)Looking at battery.sh I believe support for the battery's percent and amps can be done via commands like:
Can you add these in?