|
|
@ -12,12 +12,7 @@ namespace Pinetime {
|
|
|
|
enum class ClockType : uint8_t { H24, H12 };
|
|
|
|
enum class ClockType : uint8_t { H24, H12 };
|
|
|
|
enum class Notification : uint8_t { On, Off, Sleep };
|
|
|
|
enum class Notification : uint8_t { On, Off, Sleep };
|
|
|
|
enum class ChimesOption : uint8_t { None, Hours, HalfHours };
|
|
|
|
enum class ChimesOption : uint8_t { None, Hours, HalfHours };
|
|
|
|
enum class WakeUpMode : uint8_t {
|
|
|
|
enum class WakeUpMode : uint8_t { SingleTap = 0, DoubleTap = 1, RaiseWrist = 2, Shake = 3, LowerWrist = 4 };
|
|
|
|
SingleTap = 0,
|
|
|
|
|
|
|
|
DoubleTap = 1,
|
|
|
|
|
|
|
|
RaiseWrist = 2,
|
|
|
|
|
|
|
|
Shake = 3,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class Colors : uint8_t {
|
|
|
|
enum class Colors : uint8_t {
|
|
|
|
White,
|
|
|
|
White,
|
|
|
|
Silver,
|
|
|
|
Silver,
|
|
|
@ -238,7 +233,7 @@ namespace Pinetime {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
std::bitset<4> getWakeUpModes() const {
|
|
|
|
std::bitset<5> getWakeUpModes() const {
|
|
|
|
return settings.wakeUpMode;
|
|
|
|
return settings.wakeUpMode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -279,7 +274,7 @@ namespace Pinetime {
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
Pinetime::Controllers::FS& fs;
|
|
|
|
Pinetime::Controllers::FS& fs;
|
|
|
|
|
|
|
|
|
|
|
|
static constexpr uint32_t settingsVersion = 0x0005;
|
|
|
|
static constexpr uint32_t settingsVersion = 0x0006;
|
|
|
|
|
|
|
|
|
|
|
|
struct SettingsData {
|
|
|
|
struct SettingsData {
|
|
|
|
uint32_t version = settingsVersion;
|
|
|
|
uint32_t version = settingsVersion;
|
|
|
@ -296,8 +291,9 @@ namespace Pinetime {
|
|
|
|
|
|
|
|
|
|
|
|
WatchFaceInfineat watchFaceInfineat;
|
|
|
|
WatchFaceInfineat watchFaceInfineat;
|
|
|
|
|
|
|
|
|
|
|
|
std::bitset<4> wakeUpMode {0};
|
|
|
|
std::bitset<5> wakeUpMode {0};
|
|
|
|
uint16_t shakeWakeThreshold = 150;
|
|
|
|
uint16_t shakeWakeThreshold = 150;
|
|
|
|
|
|
|
|
|
|
|
|
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
|
|
|
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|