Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ fp-info-cache
*.plan
/.direnv
/.emscripten_cache
movement_config_local.h
39 changes: 39 additions & 0 deletions movement_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

#include "movement_faces.h"

// Include local overrides if they exist
#if defined(__has_include)
#if __has_include("movement_config_local.h")
#include "movement_config_local.h"
#endif
#endif

#ifndef WATCH_FACES_DEFINED
const watch_face_t watch_faces[] = {
clock_face,
world_clock_face,
Expand All @@ -40,36 +48,59 @@ const watch_face_t watch_faces[] = {
settings_face,
set_time_face,
};
#endif

#ifndef MOVEMENT_NUM_FACES
#define MOVEMENT_NUM_FACES (sizeof(watch_faces) / sizeof(watch_face_t))
#endif

/* Determines what face to go to from the first face on long press of the Mode button.
* Also excludes these faces from the normal rotation.
* In the default firmware, this lets you access temperature and battery voltage with a long press of Mode.
* Some folks also like to use this to hide the preferences and time set faces from the normal rotation.
* If you don't want any faces to be excluded, set this to 0 and a long Mode press will have no effect.
*/
#ifndef MOVEMENT_SECONDARY_FACE_INDEX
#define MOVEMENT_SECONDARY_FACE_INDEX (MOVEMENT_NUM_FACES - 5)
#endif

/* Custom hourly chime tune. Check movement_custom_signal_tunes.h for options. */
#ifndef SIGNAL_TUNE_DEFAULT
#define SIGNAL_TUNE_DEFAULT
#endif

/* Determines the intensity of the led colors
* Set a hex value 0-15 with 0x0 being off and 0xF being max intensity
*/
#ifndef MOVEMENT_DEFAULT_RED_COLOR
#define MOVEMENT_DEFAULT_RED_COLOR 0x0
#endif
#ifndef MOVEMENT_DEFAULT_GREEN_COLOR
#define MOVEMENT_DEFAULT_GREEN_COLOR 0xF
#endif
#ifndef MOVEMENT_DEFAULT_BLUE_COLOR
#define MOVEMENT_DEFAULT_BLUE_COLOR 0x0
#endif

/* Set to true for 24h mode or false for 12h mode */
#ifndef MOVEMENT_DEFAULT_24H_MODE
#define MOVEMENT_DEFAULT_24H_MODE false
#endif

/* Enable or disable the sound on mode button press */
#ifndef MOVEMENT_DEFAULT_BUTTON_SOUND
#define MOVEMENT_DEFAULT_BUTTON_SOUND true
#endif

#ifndef MOVEMENT_DEFAULT_BUTTON_VOLUME
#define MOVEMENT_DEFAULT_BUTTON_VOLUME WATCH_BUZZER_VOLUME_SOFT
#endif
#ifndef MOVEMENT_DEFAULT_SIGNAL_VOLUME
#define MOVEMENT_DEFAULT_SIGNAL_VOLUME WATCH_BUZZER_VOLUME_LOUD
#endif
#ifndef MOVEMENT_DEFAULT_ALARM_VOLUME
#define MOVEMENT_DEFAULT_ALARM_VOLUME WATCH_BUZZER_VOLUME_LOUD
#endif

/* Set the timeout before switching back to the main watch face
* Valid values are:
Expand All @@ -78,7 +109,9 @@ const watch_face_t watch_faces[] = {
* 2: 5 minutes
* 3: 30 minutes
*/
#ifndef MOVEMENT_DEFAULT_TIMEOUT_INTERVAL
#define MOVEMENT_DEFAULT_TIMEOUT_INTERVAL 0
#endif

/* Set the timeout before switching to low energy mode
* Valid values are:
Expand All @@ -91,7 +124,9 @@ const watch_face_t watch_faces[] = {
* 6: 1 day
* 7: 7 days
*/
#ifndef MOVEMENT_DEFAULT_LOW_ENERGY_INTERVAL
#define MOVEMENT_DEFAULT_LOW_ENERGY_INTERVAL 2
#endif

/* Set the led duration
* Valid values are:
Expand All @@ -100,12 +135,16 @@ const watch_face_t watch_faces[] = {
* 2: 3 seconds
* 3: 5 seconds
*/
#ifndef MOVEMENT_DEFAULT_LED_DURATION
#define MOVEMENT_DEFAULT_LED_DURATION 1
#endif

/* Optionally debounce button presses (disable by default).
* A value of 4 is a good starting point if you have issues
* with multiple button presses firing.
*/
#ifndef MOVEMENT_DEBOUNCE_TICKS
#define MOVEMENT_DEBOUNCE_TICKS 0
#endif

#endif // MOVEMENT_CONFIG_H_