xiao_sense_nrf52840_battery_lib icon indicating copy to clipboard operation
xiao_sense_nrf52840_battery_lib copied to clipboard

Proposal for varios changes

Open helicocrasher opened this issue 11 months ago • 2 comments

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

helicocrasher avatar Mar 06 '24 16:03 helicocrasher