Skip to content

allow setting alarm presets at compile time#477

Open
mcguirepr89 wants to merge 1 commit intojoeycastillo:mainfrom
mcguirepr89:add_alarm_presets
Open

allow setting alarm presets at compile time#477
mcguirepr89 wants to merge 1 commit intojoeycastillo:mainfrom
mcguirepr89:add_alarm_presets

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