Skip to content

Instantly share code, notes, and snippets.

@stokebrain
stokebrain / BQ27441-battery-fuel-gauge.js
Last active July 19, 2022 13:37
BQ27441 battery fuel gauge for Espruino
/*
* This file implements code to read data from and set data for
* TI-make BQ27441 battery fuel gauge. Data to be set include
* "Design Capacity", "Termination Voltage" etc. Data to be read
* include "Voltage", "Current", "Temperature", "SOC", etc.
*/
var i2c = I2C1;