mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 21:32:52 +01:00
* Revert "Enable PSRAM (#468)" This reverts commit e67aa1d8b72383a4d0ca75a834464e13afdacfe0. * add color themes * enable persistant themes * change back to origional red * add default theme 'dark-red'. subscribe on home component to the ThemeService
47 lines
1.8 KiB
C
47 lines
1.8 KiB
C
#ifndef MAIN_NVS_CONFIG_H
|
|
#define MAIN_NVS_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Max length 15
|
|
|
|
#define NVS_CONFIG_WIFI_SSID "wifissid"
|
|
#define NVS_CONFIG_WIFI_PASS "wifipass"
|
|
#define NVS_CONFIG_HOSTNAME "hostname"
|
|
#define NVS_CONFIG_STRATUM_URL "stratumurl"
|
|
#define NVS_CONFIG_STRATUM_PORT "stratumport"
|
|
#define NVS_CONFIG_FALLBACK_STRATUM_URL "fbstratumurl"
|
|
#define NVS_CONFIG_FALLBACK_STRATUM_PORT "fbstratumport"
|
|
#define NVS_CONFIG_STRATUM_USER "stratumuser"
|
|
#define NVS_CONFIG_STRATUM_PASS "stratumpass"
|
|
#define NVS_CONFIG_FALLBACK_STRATUM_USER "fbstratumuser"
|
|
#define NVS_CONFIG_FALLBACK_STRATUM_PASS "fbstratumpass"
|
|
#define NVS_CONFIG_ASIC_FREQ "asicfrequency"
|
|
#define NVS_CONFIG_ASIC_VOLTAGE "asicvoltage"
|
|
#define NVS_CONFIG_ASIC_MODEL "asicmodel"
|
|
#define NVS_CONFIG_DEVICE_MODEL "devicemodel"
|
|
#define NVS_CONFIG_BOARD_VERSION "boardversion"
|
|
#define NVS_CONFIG_FLIP_SCREEN "flipscreen"
|
|
#define NVS_CONFIG_INVERT_SCREEN "invertscreen"
|
|
#define NVS_CONFIG_INVERT_FAN_POLARITY "invertfanpol"
|
|
#define NVS_CONFIG_AUTO_FAN_SPEED "autofanspeed"
|
|
#define NVS_CONFIG_FAN_SPEED "fanspeed"
|
|
#define NVS_CONFIG_BEST_DIFF "bestdiff"
|
|
#define NVS_CONFIG_SELF_TEST "selftest"
|
|
#define NVS_CONFIG_OVERHEAT_MODE "overheat_mode"
|
|
#define NVS_CONFIG_SWARM "swarmconfig"
|
|
|
|
// Theme configuration
|
|
#define NVS_CONFIG_THEME_SCHEME "themescheme"
|
|
#define NVS_CONFIG_THEME_NAME "themename"
|
|
#define NVS_CONFIG_THEME_COLORS "themecolors"
|
|
|
|
char * nvs_config_get_string(const char * key, const char * default_value);
|
|
void nvs_config_set_string(const char * key, const char * default_value);
|
|
uint16_t nvs_config_get_u16(const char * key, const uint16_t default_value);
|
|
void nvs_config_set_u16(const char * key, const uint16_t value);
|
|
uint64_t nvs_config_get_u64(const char * key, const uint64_t default_value);
|
|
void nvs_config_set_u64(const char * key, const uint64_t value);
|
|
|
|
#endif // MAIN_NVS_CONFIG_H
|