Show charging state ie Charging or Discharging

boron
Tags: #<Tag:0x00007fe2194d1ea0>

#1

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?


#2

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


#3

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


closed #4