Show charging state ie Charging or Discharging

Tags: #<Tag:0x00007fe2194d1ea0>


I have the fuel gauge in the code and it works as expected. Since my device will be solar powered I would like to add code that would return a value of 1 for charging or 0 for discharging. I have looked through the forum and the Reference Documents but can’t locate this. Does anyone know if this is possible?


here you are : Boron Battery Connected
You will have to play a little arround this example but should be perfect for what you watns achive


thanks @dreamER that got me on the right track. I made it work.

closed #4