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

Powersaver #2

Open
okdar opened this issue Aug 8, 2020 · 1 comment
Open

Powersaver #2

okdar opened this issue Aug 8, 2020 · 1 comment

Comments

@okdar
Copy link

okdar commented Aug 8, 2020

Hello Guillaume,

Thank you for an excellent data field! I was thinking about implementing similar data field as you did and it saved me a lot of time when I discovered yours. It is exactly what I need.

For some long-time activities it is not necessary to update data field every second. I tried to implement some kind of powersaver function - data are calculated only in given intervals. I believe it can prolong battery life a bit. What do you think? I know that the most expensive operation is screen refresh but I didn't find a way how to re-draw screen only in defined intervals. It seems you cannot override every second screen refresh for data fields.

Here is my diff. Fell free to use if you find it useful. I can create pull request if you wish.
powersaver.txt

@gcormier9
Copy link
Owner

gcormier9 commented Aug 11, 2020 via email

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

2 participants