xiao_sense_nrf52840_battery_lib
xiao_sense_nrf52840_battery_lib copied to clipboard
Proposal for varios changes
Hi @Tjoms99
So as propsed lets try a pull request. It is the first one I ever tried, so you might need to be patient.
Main Changes:
- Setting of the BQ25101 Chip. On function to set the charge current (100 mA 50mA or 0 mA)
- elimination of the enable routines as they do no really work with the BQ25101 - instead status read out wheter charging is active is equal to the chargeLED.
- Voltage read during charging switches to 0mA to be able to read battery voltage .. and after reading restores the previousls se charge current.
- LED blinking blue green red off just for the fun of it.
Please check which parts you might like.
Cheers