module documentation

Button combo helper for Stick firmware

Function any_btn Check if any button in list is pressed/released
Function combo Check if button combo pressed/released
Function get_button Gets button by name from IO Manager
def any_btn(buttons, pressed=True):

Check if any button in list is pressed/released Args: buttons (list[str]): Button names (ex. ["a", "c"]) pressed (bool, optional): Does button need to be pressed (True), or released (False) to meet requirements. Returns: bool: True if requirements were met, False if not

def combo(buttons: list[str], pressed: bool = True):

Check if button combo pressed/released Args: buttons (list[str]): Button names (ex. ["a", "c"]) pressed (bool, optional): Does button combo needs to be pressed (True), or released (False) to meet requirements. Returns: bool: True if requirements were met, False if not

def get_button(name: str) -> any | None:

Gets button by name from IO Manager Args: name (str): Button name (ex. a) Returns: any | None: Button object, None if not found