26 lines
594 B
C
26 lines
594 B
C
#pragma once
|
|
#include <pebble.h>
|
|
|
|
#define STORAGE_KEY_SETTINGS 69
|
|
|
|
typedef struct ClaySettings {
|
|
bool EnablePeek;
|
|
bool ShowTimeMG;
|
|
bool TrackBTStatus;
|
|
uint8_t DateTimeoutSecs;
|
|
uint8_t LowFuelPercent;
|
|
bool UseCustomLED;
|
|
GColor ColorLED;
|
|
GColor ColorBG;
|
|
GColor ColorMGBars;
|
|
GColor ColorBarsCool;
|
|
GColor ColorBarsHot;
|
|
GColor ColorMGTime;
|
|
GColor ColorLetters;
|
|
GColor ColorHours;
|
|
GColor ColorMinutes;
|
|
GColor ColorWarning;
|
|
} __attribute__((__packed__)) ClaySettings;
|
|
|
|
_Static_assert(sizeof(ClaySettings) <= 256, "ClaySettings exceeds Pebble 256-byte persist limit!");
|