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

Wyoscan .5 hz watchface #256

Merged
merged 10 commits into from
Jul 29, 2023
Merged

Wyoscan .5 hz watchface #256

merged 10 commits into from
Jul 29, 2023

Conversation

wjhrdy
Copy link
Contributor

@wjhrdy wjhrdy commented Jul 10, 2023

This is a recreation of the Wyoscan watch, which was a $175 watch in 2014. It was an f-91w pcb replacement.

CleanShot_2023-07-06_at_16.28.20.mp4

Here is more information on it:
https://artmetropole.com/shop/11460

a demo of what it looks like:
https://www.o-r-g.com/apps/wyoscan

8 frames per number * 6 numbers + the trailing 16 frames = 64 frames
at 32 frames per second, this is a 2-second cycle time or 0.5 Hz.

It is giving me a stack overflow after about 2.5 cycles of the time display in the emulator but it works fine on the watch.

image

I'd like to make something for the low energy mode, but I haven't thought about how that might work, right now it just freezes in low energy mode until you press the 12-24HR button.

if (colon_interval_id != -1) return;

colon_state = true;
colon_interval_id = emscripten_set_interval(watch_invoke_colon_callback, (double)duration, NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it might just be this line that's causing you problems, though I'm not entirely sure how. Why are you calling emscripten here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm just tried taking this out and it still stack overflows.

I'm calling it because it seems to be the way you do a blinking animation in the emulator.

@wjhrdy
Copy link
Contributor Author

wjhrdy commented Jul 11, 2023

CleanShot 2023-07-10 at 23 52 27

it seems like something in the js is calling the setinterval function and that is making it fail looking at the stack trace.

@wjhrdy
Copy link
Contributor Author

wjhrdy commented Jul 11, 2023

I finally put it on my watch and it is not crashing. yay

@wjhrdy wjhrdy changed the title Draft: Wyoscan Wyoscan .5 hz watchface Jul 13, 2023
@wjhrdy
Copy link
Contributor Author

wjhrdy commented Jul 13, 2023

This is no longer a draft.

@joeycastillo
Copy link
Owner

This is SO MONUMENTALLY COOL! My one desire would be for it to read the settings and display a 12-hour clock when the wearer has that preference set, but I'm not going to let that block merging this insanely cool watch face.

As for low energy mode, I guess it could fall back to just displaying the time as normal, but again, I think that can be handled in a separate PR.

Thanks so much for making this!!

@joeycastillo joeycastillo merged commit 9231121 into joeycastillo:main Jul 29, 2023
2 checks passed
@wjhrdy wjhrdy deleted the wyoscan branch August 21, 2023 16:42
ooterness added a commit to ooterness/Sensor-Watch that referenced this pull request Oct 3, 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