Skip to content

Commit

Permalink
Merge pull request #609 from meshtastic/device-ui-updates
Browse files Browse the repository at this point in the history
device-ui: proto version control, new languages, lock and alert parameters
  • Loading branch information
thebentern authored Oct 28, 2024
2 parents 7dc7a6d + 545ba74 commit 8072368
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 12 deletions.
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;
}

0 comments on commit 8072368

Please sign in to comment.