1) Has someone a pointer to an English datasheet of the AXP192 ?
2) In AXP192::GetBatCurrent(), the current to the battery is calculated from 13 bits read from the AXP address 0x7a.
In AXP192::GetBatChargeCurrent(), the battery current is read from 12 bits at address 0x7a.
Code is pasted below.
Which version is correct ? The ReadXXBit() functions are also not helpful - these shift the first byte read 3/4 bits and ADD the second byte without any mask).
A few days ago I ported the Arduino AXP192 code to micropython (see https://github.com/karfas/M5StickC-uPy). It works, but some questions arised:
1) Has someone a pointer to an English datasheet of the AXP192 ?
2) In AXP192::GetBatCurrent(), the current to the battery is calculated from 13 bits read from the AXP address 0x7a. In AXP192::GetBatChargeCurrent(), the battery current is read from 12 bits at address 0x7a. Code is pasted below.
Which version is correct ? The ReadXXBit() functions are also not helpful - these shift the first byte read 3/4 bits and ADD the second byte without any mask).
Kind regards,
Thomas