module documentation

Popup system for Stick firmware

Function show Show popup
Function split_text Splits text to fit on display
def show(message: str, title: str = 'Info', timeout: int = 3600):

Show popup Args: message (str): Long message to display in popup title (str, optional): Short title, default "Info" timeout (int, optional): Timeout in seconds, popup will automatically close after timeout, default 3600 (1 hour)

def split_text(text: str, max_len: int = 29, max_lines: int = 13) -> list[str]:

Splits text to fit on display Args: text (str): Text to split into array max_len (int, optional): Max length of the line, default 29 chars max_lines (int, optional): Max lines of text, default 13 chars Returns: list[str]: Array of split text