Settings - Configure device settings.
| Function | run |
Run the app and handle setting input. |
| Function | start |
Start the app and build the settings menu. |
| Function | stop |
Stop the app and clean up. |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Function | __anthropic |
Callback triggered when the Anthropic API key keyboard is saved. |
| Function | __apply |
Apply a toggle setting change to the view manager. |
| Function | __back |
Clean up any sub-view and return to the main menu. |
| Function | __back |
Return to the Server Settings sub-menu. |
| Function | __back |
Return to the Time sub-menu from a date picker or keyboard. |
| Function | __color |
Get the list of color values corresponding to the color names. |
| Function | __config |
Get the configuration tuple for the current setting. |
| Function | __deepseek |
Callback triggered when the DeepSeek API key keyboard is saved. |
| Function | __exit |
Get the mapping of button values to their names for the exit button setting. |
| Function | __gemini |
Callback triggered when the Gemini API key keyboard is saved. |
| Function | __gmt |
Callback triggered when the GMT offset keyboard is saved. |
| Function | __local |
Callback triggered when the Local URL keyboard is saved. |
| Function | __open |
Open the keyboard for entering the Anthropic API key. |
| Function | __open |
Open a Choice sub-view for the theme color setting. |
| Function | __open |
Open a Choice sub-view for the screen brightness setting. |
| Function | __open |
Open a Choice sub-view for the button to exit setting. |
| Function | __open |
Open the DatePicker pre-loaded with the current RTC time. |
| Function | __open |
Open the keyboard for entering the DeepSeek API key. |
| Function | __open |
Open the keyboard for entering the Gemini API key. |
| Function | __open |
Open the keyboard for entering the GMT offset. |
| Function | __open |
Open the keyboard for entering the Local URL. |
| Function | __open |
Open the keyboard for entering the OpenAI API key. |
| Function | __open |
Open the keyboard for entering the server username or password. |
| Function | __open |
Open the Server Settings sub-menu (Username / Password). |
| Function | __open |
Open the Time sub-menu (Date & Time / GMT Offset). |
| Function | __open |
Open a Toggle sub-view for the given setting index. |
| Function | __open |
Open the keyboard for entering the xAI API key. |
| Function | __openai |
Callback triggered when the OpenAI API key keyboard is saved. |
| Function | __save |
Save the server password to storage. |
| Function | __save |
Save the server username to storage. |
| Function | __server |
Callback triggered when the server keyboard is saved. |
| Function | __xai |
Callback triggered when the xAI API key keyboard is saved. |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Constant | _MODE |
Undocumented |
| Variable | _anthropic |
Undocumented |
| Variable | _choice |
Undocumented |
| Variable | _current |
Undocumented |
| Variable | _date |
Undocumented |
| Variable | _deepseek |
Undocumented |
| Variable | _gemini |
Undocumented |
| Variable | _gmt |
Undocumented |
| Variable | _local |
Undocumented |
| Variable | _menu |
Undocumented |
| Variable | _openai |
Undocumented |
| Variable | _server |
Undocumented |
| Variable | _server |
Undocumented |
| Variable | _server |
Undocumented |
| Variable | _settings |
Undocumented |
| Variable | _time |
Undocumented |
| Variable | _toggle |
Undocumented |
| Variable | _view |
Undocumented |
| Variable | _xai |
Undocumented |
Run the app and handle setting input.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Start the app and build the settings menu.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
| Returns | |
bool | True if the app started, False if no SD card is present. |
Stop the app and clean up.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Callback triggered when the Anthropic API key keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Apply a toggle setting change to the view manager.
| Parameters | |
index:int | The setting index to apply. |
state:bool | The new toggle state. |
Get the list of color values corresponding to the color names.
| Returns | |
list[int] | The color values matching the theme color names. |
Get the configuration tuple for the current setting.
| Returns | |
tuple | The (menu label, json key, default value) tuples. |
Callback triggered when the DeepSeek API key keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Get the mapping of button values to their names for the exit button setting.
| Returns | |
dict[int, str] | The button value to name mapping. |
Callback triggered when the Gemini API key keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Callback triggered when the GMT offset keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Callback triggered when the Local URL keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Open the keyboard for entering the server username or password.
| Parameters | |
field:int | 0 for username, 1 for password. |
Open a Toggle sub-view for the given setting index.
| Parameters | |
settingint | The setting index to toggle. |
Callback triggered when the OpenAI API key keyboard is saved.
| Parameters | |
result:str | The saved keyboard value. |
Save the server password to storage.
| Parameters | |
value:str | The password to save. |
| Returns | |
bool | True on success. |
Save the server username to storage.
| Parameters | |
value:str | The username to save. |
| Returns | |
bool | True on success. |