From 539c7fb889f2ac34b7f3f59169ab035b8636a136 Mon Sep 17 00:00:00 2001 From: zenox <zenox-git.card10@dukun.de> Date: Fri, 4 Oct 2019 14:46:22 +0200 Subject: [PATCH] documentation added --- pycardium/modules/py/leds.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pycardium/modules/py/leds.py b/pycardium/modules/py/leds.py index 75f3aac87..50ebddf92 100644 --- a/pycardium/modules/py/leds.py +++ b/pycardium/modules/py/leds.py @@ -94,6 +94,19 @@ def get_rocket(led): """ return sys_leds.get_rocket(led) +def blink_rocket(led, value, millis): + """ + Let one of the rockets blink for a certain time without + blocking the python interpreter. + + :param int led: Choose your rocket! + :param int value: brightness value (0 < value < 32) + :param int millis: duration of the rocket being on in milliseconds. + + .. versionadded:: 1.?? + """ + return sys_leds.blink_rocket(led, value, millis) + def dim_top(value): """ -- GitLab