Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device-ui: proto version control, new languages, lock and alert parameters #609

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meshtastic/device_ui.options
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*DeviceUIConfig.screen_brightness int_size:8
*DeviceUIConfig.screen_timeout int_size:16
*DeviceUIConfig.ring_tone_id int_size:8
*NodeFilter.node_name max_size:16
*NodeFilter.hops_away int_size:8
*NodeHighlight.node_name max_size:16
63 changes: 51 additions & 12 deletions meshtastic/device_ui.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,54 @@ option swift_prefix = "";
*/

message DeviceUIConfig {
/*
* A version integer used to invalidate saved files when we make incompatible changes.
*/
uint32 version = 1;

/*
* TFT display brightness 1..255
*/
uint32 screen_brightness = 1;
uint32 screen_brightness = 2;

/*
* Screen timeout 0..900
*/
uint32 screen_timeout = 2;
uint32 screen_timeout = 3;

/*
* Screen lock enabled
* Screen/Settings lock enabled
*/
bool screen_lock = 3;
bool screen_lock = 4;
bool settings_lock = 5;
uint32 pin_code = 6;

/*
* Color theme
*/
Theme theme = 4;
Theme theme = 7;

/*
* Audible message alert enabled
* Audible message, banner and ring tone
*/
bool alert_enabled = 5;
bool alert_enabled = 8;
bool banner_enabled = 9;
uint32 ring_tone_id = 10;

/*
* Localization
*/
Language language = 6;
Language language = 11;

/*
* Node list filter
*/
NodeFilter node_filter = 7;
NodeFilter node_filter = 12;

/*
* Node list highlightening
* Node list highlightening
*/
NodeHighlight node_highlight = 8;
NodeHighlight node_highlight = 13;
}


Expand Down Expand Up @@ -184,5 +193,35 @@ enum Language {
* Turkish
*/
TURKISH = 9;
}

/*
* Serbian
*/
SERBIAN = 10;

/*
* Russian
*/
RUSSIAN = 11;

/*
* Dutch
*/
DUTCH = 12;

/*
* Greek
*/
GREEK = 13;

/*
* Simplified Chinese (experimental)
*/
SIMPLIFIED_CHINESE = 30;

/*
* Traditional Chinese (experimental)
*/
TRADITIONAL_CHINESE = 31;
}