-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery API #74
Comments
Sorry, the hardware nonsupport get the battery charge level. |
@0x1abin I'm talking about FIRE, which presumably has |
The FIRE can get the battery charge status by i2c, but can't get level. |
@0x1abin cool. Is there any info on how to get the status at least? ) |
The power IC IP5306 datasheet is Chinese :D ..., I write a simple function: |
@0x1abin |
IP5306 registers map: IP5209 IP5109 IP5207 IP5108 registers map: A bit more about IP5108, but only russian language (google translater help you): Battery Shield Libary for arduino (with Register description): P.S. If somebody understand power IC (such as IP5*) programming, can you help save my settings in default register. If I put power off, all my I2C settings will set default and don't want each time connect my power chip to arduino and change settings. |
I found it. https://mobile.twitter.com/lovyan03/status/1104548868199337984 |
|
It looks great, I will check it and add put it to power.c |
BASIC no work. Return -1 |
My BASIC is 2018.03 . Can you post all Code here ? |
Perhaps the differences between versions of various libraries may affect you. I cut out only the necessary parts from this project. |
Did you run "Wire.begin()" ?
|
Now it works! Thanks you!
|
Will it work with the 700mAh battery board attached? |
It worked for me with 700mAh battery. |
Would this work in the 2018.2A version? |
Is there any way to make this work on the M5Stick-C as well? |
Update: Try M5.Power.getBatteryLevel() and M5.Power.isChargeFull() functions in standard M5Stack.h library. |
Excuse me. Can I help you? Do you have a more detailed Arduino program? I don't know much about the I2C mechanism of the IP series charging ICs, I just need to display the battery level. |
Is there any way to get the battery charge level/status?
The text was updated successfully, but these errors were encountered: