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

clock.py: constrain hour to 0 to 24 #715

Merged
merged 1 commit into from
Mar 15, 2023
Merged

Conversation

mogenson
Copy link
Contributor

Use a modulo to constrain the displayed hour to 0 - 24 after applying the UTC offset.

Very small change to the Galactic Unicorn, Cosmic Unicorn, and Interstate75 clock.py examples.

Use a modulo to constrain the displayed hour to 0 - 24 after applying
the UTC offset.
@helgibbons
Copy link
Contributor

Looks good, thank you!

I think this may help fix #578 ?

@helgibbons helgibbons merged commit d4d2b6f into pimoroni:main Mar 15, 2023
@mogenson mogenson deleted the clock-modulo branch March 15, 2023 14:38
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.

2 participants