update battery.h

This commit is contained in:
2022-03-21 09:10:35 +01:00
parent 8f3091e8b1
commit ece89eba60
5 changed files with 11 additions and 8 deletions
+5 -4
View File
@@ -60,10 +60,10 @@ void setup() {
Serial.begin(115200);
char wifiIndicator = 'X';
mainBattery = new Battery(35, 690000, 220000);
mainBattery = new Battery(35, 692000, 218500);
Wire.begin(21, 19);
// i2cScanner();
i2cScanner();
lcd = new LiquidCrystal_I2C(0x3F,16,2);
lcd->init();
lcd->clear();
@@ -189,14 +189,15 @@ void i2cScanner() {
std::cout << "I2C device found at address 0x";
if (address<16)
std::cout << "0";
std::cout << std::hex << address << std::endl;
std::cout << std::hex << (int) address << std::endl;
// std::cout << (int) address << std::endl;
nDevices++;
}
else if (error==4) {
std::cout << "Unknow error at address 0x";
if (address<16)
std::cout << "0";
std::cout << std::hex << address << std::endl;
std::cout << std::hex << (int) address << std::endl;
}
}
if (nDevices == 0)