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

[entonclk] Add timer function #2425

Merged
merged 2 commits into from
Jan 5, 2023
Merged

[entonclk] Add timer function #2425

merged 2 commits into from
Jan 5, 2023

Conversation

siatko
Copy link
Contributor

@siatko siatko commented Dec 25, 2022

For my watchface I urgently needed a timer function. In the past, I have used the built-in timer or 'a_clock_timer' from @alainsaas for this. I looked at the code for it and just unceremoniously added it to my watchface. I left the increase over the right touch. The decrease over the left touch, however, I have reduced to 1 minute. So it is also possible to give more precise information like 3, 7 or 12 minutes. Thanks for the code from @alainsaas. So it was very easy for me.

@alainsaas
Copy link
Contributor

Thanks for the mention, glad to hear my code helped :)

@gfwilliams
Copy link
Member

Thanks! I guess a timer could be a good candidate for a clock_info module (#2226) so that it could be used by any participating clock faces as well

@gfwilliams gfwilliams merged commit 7beabcf into espruino:master Jan 5, 2023
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 this pull request may close these issues.

3 participants