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

allow setting alarm presets at compile time #477

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcguirepr89
Copy link
Contributor

This allows a user to create preset alarms that are setup at compile time. This allows users to forego recreating their alarms anytime they re-compile their firmware. I've found it helpful and suspect there may be others who also find this helpful.

Alarm presets are set in alarm_face.h and look something like this:

static const alarm_setting_t alarm_presets[] = {
    { ALARM_DAY_WORKDAY, 6, 0, 5, 1, true }, //day, hour, minute, beeps, pitch, enabled
    { ALARM_DAY_WORKDAY, 16, 30, 5, 1, true },
};

@joeycastillo
Copy link
Owner

Hi and thanks for this pull request! Pull requests against this repository are on hold during a refactor of Movement to support new hardware. Still I think this is a promising addition and I'd like to look at it at a later date. Sorry if it doesn't get attention right away!

@matheusmoreira matheusmoreira added 2.0-wait-list This feature or pull requests has been deferred until the movement 2.0 refactor is complete enhancement New feature or request labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0-wait-list This feature or pull requests has been deferred until the movement 2.0 refactor is complete enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants