Using the SDK, what would the best way to implement driving an LED based on charging? Basically if a device is plugging in and charging I would like to drive a GPIO to one state, if the device is no longer charging (lower current draw) I would like to drive the GPIO to a different state.
Solved! Go to Solution.
Hi Kevin,
So far, we do not have official release code for it. We are on the road to add it into SDK in future.
Best Regards,
Lisa
Hi Kevin,
The way you said is the best way to implement driving an LED based on charging without any additional hardware cost. Or you can always use current value to judge what's states of charging.
Best Regards,
Lisa
Lisa,
I don't think you understood the question fully. I know I will need to use the SDK. The question is with the SDK how do I do this. What API can I use to access the real time current data, is there already example code to show this?
I am going to use the SDK and I am asking for the recommended way to implement this.
-Kevin
Hi Kevin,
So far, we do not have official release code for it. We are on the road to add it into SDK in future.
Best Regards,
Lisa