Initial commit
This commit is contained in:
35
main/settings.h
Normal file
35
main/settings.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "esp_err.h"
|
||||
#include "tarot_logic.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
TAROT_THEME_DARK = 0,
|
||||
TAROT_THEME_LIGHT,
|
||||
TAROT_THEME_MYSTIC,
|
||||
} tarot_theme_t;
|
||||
|
||||
typedef struct {
|
||||
bool reversed_cards_enabled;
|
||||
bool save_readings_enabled;
|
||||
uint8_t brightness;
|
||||
tarot_theme_t theme;
|
||||
tarot_spread_t selected_spread;
|
||||
} tarot_settings_t;
|
||||
|
||||
esp_err_t settings_init(void);
|
||||
tarot_settings_t settings_get(void);
|
||||
esp_err_t settings_save(const tarot_settings_t *settings);
|
||||
void settings_set_defaults(tarot_settings_t *settings);
|
||||
const char *settings_theme_name(tarot_theme_t theme);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user