Open-Smartwatch / open-smartwatch-os

The Open-Smartwatch Operating System.
https://open-smartwatch.github.io
GNU General Public License v3.0
984 stars 161 forks source link

Check getBatteryPercent with drawUsbConnected #374

Closed RuffaloLavoisier closed 9 months ago

RuffaloLavoisier commented 10 months ago

image

It would be nice if you could check how much the battery is charged even when it is currently being charged.

RuffaloLavoisier commented 10 months ago

Also we need debugging for test in emulator

uvwxy commented 10 months ago

Is this for general OS support, or for the light v3.x?

I've been working with the MAX17043 with my latest builds, which intends to be used while the battery is not in use. This would make the approach similar to go by the voltage that is applied to the lipo by the charging circuit.

Probably the easiest would be to take the latest state of charge in % and then the time it has been charged?

RuffaloLavoisier commented 10 months ago

Simply put, even during charging, we should be able to check with the indicator how much it is charged.

simonmicro commented 9 months ago

With the current hardware releases, this is not possible, as we can only measure the voltage - during charging this is a fixed one... MAX17043 is a battery-management-chip, which we would have to include in the future - then we can ask it using I2C what the levels are. I would close the issue for now, as we cannot implement it for now...

RuffaloLavoisier commented 8 months ago

I understand that the battery capacity can be measured while charging. I just want to express this on the display while charging.