This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MAX17043 1-Cell Fuel Gauge | |
// APP for https://github.com/tomsuch/M5StackSAM | |
void appAccuMeter(){ | |
menuidx = 1; | |
menulock = 0; | |
menuDrawMenu(F("ACCU METER"),F(""),F("ESC"),F(""),sys_menucolor,sys_windowcolor,sys_menutextcolor); | |
const int MAX17043ADDR=0x36; | |
const int MAX17043CMDADDR=0xFE; | |
const int MAX17043SOCADDR=0x04; | |
const int MAX17043VCELLADDR=0x02; |