module documentation

Text placement helper for Stick firmware

Function center_x Center x of text on screen
Function center_x_vert Center vertically x of text on screen
Function center_y Center y of text on screen
Function center_y_vert Center vertically y of text on screen
def center_x(text: str, width: int) -> int:

Center x of text on screen Args: text (str): Text to center width (int): Width of font Returns: int: x coordinates of text

def center_x_vert(text: str, width: int) -> int:

Center vertically x of text on screen Args: text (str): Text to center width (int): Width of font Returns: int: x coordinates of text

def center_y(height: int) -> int:

Center y of text on screen Args: height (int): Height of font Returns: int: y coordinates of text

def center_y_vert(height: int) -> int:

Center vertically y of text on screen Args: height (int): Height of font Returns: int: y coordinates of text