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

A binary watch face #1910

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Zetabite
Copy link

This adds a binary watch face, which displays the time in binary. The binary number is represented in equal sized dots, which are colored red if 1, and colored grey if 0. The LSB is right. The first row is hours, the second is minutes, and if enabled, the third row displays seconds. Additionally this watch face supports both 12h and 24h time format. In case of 12h, one hour dot is hidden and above the left most minute dot, text displays if its AM or PM, same as for the dots, red colored meaning this is the current time, while grayed means its not that time. I included some examples.
WatchFaceBinary_Seconds_12h
12h, with seconds enabled
WatchFaceBinary_Seconds_24h
24h, with seconds enabled
WatchFaceBinary_Without_Seconds_12h
12h, with seconds disabled
WatchFaceBinary_Without_Seconds_24h
24h, with seconds disabled

Copy link

github-actions bot commented Nov 12, 2023

Build size and comparison to main:

Section Size Difference
text 379464B 1952B
data 940B 0B
bss 63420B 0B

@JF002 JF002 added the new watchface This thread is about a new watchface label Nov 12, 2023
@kieranc
Copy link
Contributor

kieranc commented Nov 12, 2023

I like this, I have a binary clock and I would love the ability to have one on my wrist. The only problem is, my binary clock uses BCD rather than pure binary, and I'm wondering if it would be possible to make this watchface configurable between BCD and the current pure binary display?

@Zetabite
Copy link
Author

I like this, I have a binary clock and I would love the ability to have one on my wrist. The only problem is, my binary clock uses BCD rather than pure binary, and I'm wondering if it would be possible to make this watchface configurable between BCD and the current pure binary display?

Excuse, I am not quite familiar with the term, BCD, could you elaborate?

Added define to enable/disable seconds for the binary clock in a build
@Zetabite
Copy link
Author

Zetabite commented Nov 12, 2023

I like this, I have a binary clock and I would love the ability to have one on my wrist. The only problem is, my binary clock uses BCD rather than pure binary, and I'm wondering if it would be possible to make this watchface configurable between BCD and the current pure binary display?

Excuse, I am not quite familiar with the term, BCD, could you elaborate?

Ah, I assume this: https://codegolf.stackexchange.com/questions/1198/draw-a-bcd-binary-clock

@Zetabite
Copy link
Author

Ok, I looked at it, it works inherently different to my implementation, but I have no issue onto adding this watch face on a personal branch for now

@Zetabite
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new watchface This thread is about a new watchface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants