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

Read the battery status (and show a nice graphic)? #20

Open
noonasGit opened this issue Jan 16, 2023 · 5 comments
Open

Read the battery status (and show a nice graphic)? #20

noonasGit opened this issue Jan 16, 2023 · 5 comments

Comments

@noonasGit
Copy link

Hello!

I love my little merlot device - getting me back in to coding (and learning a few new tricks too)..

I see the wifi part but could not see any references to battery (charging status, battery level)
Is there a place where I can poke this to make a nice battery graphic for my Papered.ink screen?

/jonas

@timendum
Copy link

timendum commented Feb 2, 2023

I found something in this repository, but it's archived. I also agree, a function to gather and display the battery status in the library would be very useful.

@haarts
Copy link
Contributor

haarts commented Feb 5, 2023

This seems the relevant part for the battery. But it uses a deprecated function adc_power_on, that should be adc_power_acquire.
It also includes stuff that makes no sense to me like adc1_config_width(ADC_WIDTH_BIT_12); or pcf8574.digitalWrite(BATT_EN, HIGH);. There are also some magic constants that are unclear to me: (batt_adc/4095.0)*4.2).

I would love to know what that all means.

@noonasGit
Copy link
Author

Hello there!

Anyone found more information about this?
I love my Papered.ink device (merlot).
I have made a mashup screen that has weather, todays date/month and a quote in one screen.
Still would love to see a battery status to know when to plug in it.

@elratt0r
Copy link

See here:
paperdink/paperd_ink_test#4

@danielo515
Copy link

Thanks for the link. It is a bit basic though, it just has an example. Is there any docs or example with a UI part?

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

No branches or pull requests

5 participants