Initial commit

This commit is contained in:
drjones
2026-06-23 06:03:19 -07:00
commit fb4753c1f7
31 changed files with 2908 additions and 0 deletions

35
main/settings.h Normal file
View 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