Skip to content
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

Reading battery level with Badger 2040W #26

Open
DuaneKaufman opened this issue Jun 14, 2023 · 2 comments · May be fixed by #29
Open

Reading battery level with Badger 2040W #26

DuaneKaufman opened this issue Jun 14, 2023 · 2 comments · May be fixed by #29

Comments

@DuaneKaufman
Copy link

Dear All,

I have noticed that get_battery_level() doesn't perform a measurement:
def get_battery_level(): return 0 # Battery measurement`

Is this because the method provides erroneous results? Has anyone found a good way to report battery levels when running on battery?

Sincerely,
Duane

@salimhb
Copy link

salimhb commented Jun 17, 2023

It looks like left over Code from the old repository (which was for other devices).
I tried uncommenting the return and couldn't get any result. I'm also interested if anyone has hints in the right direction.

@GMMan
Copy link

GMMan commented Jun 21, 2023

For further reading: https://github.com/orgs/micropython/discussions/10421

The current code is for Badger 2040 which uses a standalone RP2040 and has the pins set up a bit differently from how they would be on a Pi Pico.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants