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

Added ability to add presets to the sunrise and sunset face #420

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

voloved
Copy link
Contributor

@voloved voloved commented Jul 20, 2024

I made it easy to cycle through other hardcoded coordinates in the sunrise senset face by pressing the light button.
If no presets are added except for the default, then it behaves exactly the same as it already does.
Adding more presets only will change the LED functionality, where a long-press causes the LED to start and clicking the LED button cycles. Holding the Alarm button when on a preset will default back to the default coordinates screen.

Example of adding other coordinates in my 'sunrise_sunset.h' file:

static const long_lat_presets_t longLatPresets[] =
{
    { .name = "  "},  // Default, the long and lat get replaced by what's set in the watch
//    { .name = "Ny", .latitude = 4072, .longitude = -7401 },  // New York City, NY
//    { .name = "LA", .latitude = 3405, .longitude = -11824 },  // Los Angeles, CA
//    { .name = "dE", .latitude = 4221, .longitude = -8305 },  // Detroit, MI
};
2024-07-20_14-42-45.mp4

@theAlexes theAlexes merged commit 42c14c2 into joeycastillo:main Jul 24, 2024
2 checks passed
@voloved voloved mentioned this pull request Aug 3, 2024
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