mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define DISPLAY_BATTERY_BAR 0
|
|
#define DISPLAY_BATTERY_PERCENT 1
|
|
#define DISPLAY_BATTERY_INVERTED_PERCENT 2
|
|
#define DISPLAY_BATTERY_RETRO_3 3
|
|
#define DISPLAY_BATTERY_RETRO_5 4
|
|
#define DISPLAY_BATTERY_BAR_PERCENT 5
|
|
|
|
typedef enum {
|
|
FavoriteAppLeftShort,
|
|
FavoriteAppLeftLong,
|
|
FavoriteAppRightShort,
|
|
FavoriteAppRightLong,
|
|
|
|
FavoriteAppNumber,
|
|
} FavoriteAppShortcut;
|
|
|
|
typedef enum {
|
|
DummyAppLeftShort,
|
|
DummyAppLeftLong,
|
|
DummyAppRightShort,
|
|
DummyAppRightLong,
|
|
DummyAppUpLong,
|
|
DummyAppDownShort,
|
|
DummyAppDownLong,
|
|
DummyAppOkShort,
|
|
DummyAppOkLong,
|
|
|
|
DummyAppNumber,
|
|
} DummyAppShortcut;
|
|
|
|
typedef struct {
|
|
char name_or_path[128];
|
|
} FavoriteApp;
|
|
|
|
typedef struct {
|
|
uint32_t auto_lock_delay_ms;
|
|
uint8_t displayBatteryPercentage;
|
|
uint8_t dummy_mode;
|
|
uint8_t display_clock;
|
|
FavoriteApp favorite_apps[FavoriteAppNumber];
|
|
FavoriteApp dummy_apps[DummyAppNumber];
|
|
} DesktopSettings;
|
|
|
|
void desktop_settings_load(DesktopSettings* settings);
|
|
void desktop_settings_save(const DesktopSettings* settings);
|