i think we have a few things to change to make rAXP192 working :
- in all files created we have " __attribute__((deprecated))" we have to remove this part in .cpp.clean file
- in new cpp file we have "void B4RAXP192::SetCoulombClear(?? )" => we need "void B4RAXP192::SetCoulombClear( )"
in arduino h file we have "void B4RAXP192:

eepSleep(uint64_t time_in_us)" but uint64_t (8 bytes) don't exist in B4X. We can try Ulong (4 bytes) on B4R side if 4 bytes is enought or 2 Ulong, or an array if 8 bytes are needed...
in arduino h file we have "void Read6BytesStorage( uint8_t * bufPtr );" buf content is sent back from arduino library to B4X: we have to modify manually this part to make it working.
version in attached file seem correct, but i have issue at compilation B4R with library AXP192 added
Vérification...
D:\B4R\BAR_AP~1\TEST_A~1\Objects\bin\sketch\AXP192.cpp: In member function 'void AXP192::begin(bool, bool, bool, bool, bool)':
AXP192.cpp:10:5: error: 'Wire1' was not declared in this scope
Wire1.begin(21, 22);
^
D:\B4R\BAR_AP~1\TEST_A~1\Objects\bin\sketch\AXP192.cpp: In member function 'void AXP192::Write1Byte(uint8_t, uint8_t)':
AXP192.cpp:63:5: error: 'Wire1' was not declared in this scope
Wire1.beginTransmission(0x34);
^
D:\B4R\BAR_AP~1\TEST_A~1\Objects\bin\sketch\AXP192.cpp: In member function 'uint8_t AXP192::Read8bit(uint8_t)':
AXP192.cpp:71:5: error: 'Wire1' was not declared in this scope
Wire1.beginTransmission(0x34);
=> i have same issue when i try to use same library in Arduino directly, it seems not linked with B4R
sketch\AXP192.cpp: In member function 'void AXP192::begin(bool, bool, bool, bool, bool)':
sketch\AXP192.cpp:10:5: error: 'Wire1' was not declared in this scope
Wire1.begin(21, 22);
^
sketch\AXP192.cpp: In member function 'void AXP192::Write1Byte(uint8_t, uint8_t)':
sketch\AXP192.cpp:63:5: error: 'Wire1' was not declared in this scope
Wire1.beginTransmission(0x34);
^
sketch\AXP192.cpp: In member function 'uint8_t AXP192::Read8bit(uint8_t)':
sketch\AXP192.cpp:71:5: error: 'Wire1' was not declared in this scope
Wire1.beginTransmission(0x34);
gook luck for next step