-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings app: Settings are now properly saved to flash.
- Loading branch information
Showing
4 changed files
with
142 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
#include <inttypes.h> | ||
#include <stdbool.h> | ||
|
||
#define ZSW_SETTINGS_PATH "settings" | ||
|
||
typedef int32_t zsw_settings_brightness_t; | ||
#define ZSW_SETTINGS_KEY_BRIGHTNESS "bri" | ||
#define ZSW_SETTINGS_BRIGHTNESS (ZSW_SETTINGS_PATH "/" ZSW_SETTINGS_KEY_BRIGHTNESS) | ||
|
||
typedef bool zsw_settings_vib_on_press_t; | ||
#define ZSW_SETTINGS_KEY_VIBRATION_ON_PRESS "vib" | ||
#define ZSW_SETTINGS_VIBRATE_ON_PRESS (ZSW_SETTINGS_PATH "/" ZSW_SETTINGS_KEY_VIBRATION_ON_PRESS) | ||
|
||
typedef bool zsw_settings_display_always_on_t; | ||
#define ZSW_SETTINGS_KEY_DISPLAY_ALWAYS_ON "disp_on" | ||
#define ZSW_SETTINGS_DISPLAY_ALWAYS_ON (ZSW_SETTINGS_PATH "/" ZSW_SETTINGS_KEY_DISPLAY_ALWAYS_ON) | ||
|
||
typedef bool zsw_settings_ble_aoa_en_t; | ||
#define ZSW_SETTINGS_KEY_BLE_AOA_EN "aoa_en" | ||
#define ZSW_SETTINGS_BLE_AOA_EN (ZSW_SETTINGS_PATH "/" ZSW_SETTINGS_KEY_BLE_AOA_EN) | ||
|
||
typedef int32_t zsw_settings_ble_aoa_int_t; | ||
#define ZSW_SETTINGS_KEY_BLE_AOA_INT "aoa_int" | ||
#define ZSW_SETTINGS_BLE_AOA_INT (ZSW_SETTINGS_PATH "/" ZSW_SETTINGS_KEY_BLE_AOA_INT) |