diff --git a/pycardium/modules/py/simple_menu.py b/pycardium/modules/py/simple_menu.py index 723a8c3a18e9c46b1c5bcf6c423bf102bbb2431f..1b63e27e25e34665e955af6a143f47040f66f589 100644 --- a/pycardium/modules/py/simple_menu.py +++ b/pycardium/modules/py/simple_menu.py @@ -52,6 +52,12 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG :py:data:`simple_menu.TIMEOUT`. .. versionadded:: 1.9 + + :param int,optional long_press_ms: Time for long key press in ms. + .. versionadded:: 1.17 + :param int,optional retrigger_ms: Time for repeating key press on hold in ms. + .. versionadded:: 1.17 + """ yield 0 @@ -337,7 +343,14 @@ class Menu: self.disp.update() def run(self, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIGGER_MS): - """Start the event-loop.""" + """ + Start the event-loop. + + :param int,optional long_press_ms: Time for long key press in ms. + .. versionadded:: 1.17 + :param int,optional retrigger_ms: Time for repeating key press on hold in ms. + .. versionadded:: 1.17 + """ try: timeout = self.scroll_speed if self.timeout is not None and self.timeout < self.scroll_speed: