PB-LITE code

Micropython and Arduino code, just copy and paste...

Choose your language of choice.

Full code.

Code for reading battery percentage and checking charge status.

Only reading battery percentage.

Code for only reading battery percentage.

Only checking charge status.

Code for only checking charge status.

Advanced.

Code for reading battery percentage and checking charge status. With even more advanced features like checking charge/discharge rate, undervoltage, overvoltage, reset, SOC low, and SOC change

Full code.

Code for reading battery percentage and checking charge status.

Only reading battery percentage.

Code for only reading battery percentage.

Only checking charge status.

Code for only checking charge status.

Advanced.

Code for reading battery percentage and checking charge status. With even more advanced features like checking charge/discharge rate, undervoltage, overvoltage, reset, SOC low, and SOC change