Make awareness alarm configurable and vastly more useful

This commit is contained in:
2026-08-18 23:02:55 -04:00
parent 8e64b4b4b8
commit dc10841812
5 changed files with 164 additions and 77 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <stdint.h>
// BUMP ON UPDATES
#define STORAGE_KEY_SETTINGS 50
#define STORAGE_KEY_ALARM_REASON 100
#define STORAGE_KEY_ALARM_HOUR 0
#define STORAGE_KEY_ALARM_MINUTE 1
typedef struct AppSettings {
bool TutorialEnabled;
bool PavlokEnabled;
uint8_t AwarenessTimeGapMinutes;
uint8_t AwarenessTimeLimitSeconds;
uint8_t AwarenessNudgeEnabled;
} __attribute__((__packed__)) AppSettings;
_Static_assert(sizeof(AppSettings) <= 256, "AppSettings exceeds Pebble 256-byte persist limit!");