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

feat(display): Add config to show battery level in percentage #1563

Merged
merged 2 commits into from Dec 10, 2022

Conversation

caksoylar
Copy link
Contributor

Add a new Kconfig CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE for battery status widget. When set, show battery level in percentage text instead of using battery icons.

Unfortunately it looks to me there can be issues with widgets overlapping while charging with nice!view resolution and font sizes. This is an emulation, haven't tested on the actual shield yet:
image

@duckyb
Copy link
Contributor

duckyb commented Dec 2, 2022

charging wireless
ZVE02725 (Medium) ZVE02723 (Medium)

Works fine 👍🏻

@duckyb
Copy link
Contributor

duckyb commented Dec 2, 2022

It's good that while charging only the USB logo appears in the top left corner, so overlapping is not likely to occur in real world usage.

Copy link
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Thanks for the addition.

@petejohanson petejohanson added enhancement New feature or request displays labels Dec 10, 2022
@petejohanson petejohanson merged commit 2a42fe6 into zmkfirmware:main Dec 10, 2022
@caksoylar caksoylar deleted the battery-widget-percentage branch December 11, 2022 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
displays enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants