summaryrefslogtreecommitdiff
path: root/src/c/config.h
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2026-07-17 01:12:18 +0200
committerReiner Herrmann <reiner@reiner-h.de>2026-07-17 01:12:18 +0200
commit7b2319b1727dd25d16f12351376cdba75a404fb1 (patch)
treec46f480e22dbdb7a345240813d2ab7c5fa083217 /src/c/config.h
parentdf2fbf4c9291cce340945a0a71de0200ccae7369 (diff)
make settings configurable via phone app
Diffstat (limited to 'src/c/config.h')
-rw-r--r--src/c/config.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/c/config.h b/src/c/config.h
new file mode 100644
index 0000000..899c289
--- /dev/null
+++ b/src/c/config.h
@@ -0,0 +1,26 @@
+/* Copyright (C) 2026 Reiner Herrmann
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include <pebble.h>
+
+enum BeatIndicator {
+ FLASHING = 0,
+ VIBRATION,
+ BEEP,
+};
+
+void config_init();
+void config_deinit();
+
+uint16_t config_get_bpm();
+void config_set_bpm(uint16_t bpm);
+uint8_t config_get_beats();
+void config_set_beats(uint8_t beats);
+uint8_t config_get_volume();
+bool config_is_indicator_enabled(enum BeatIndicator);
+
+#endif