diff --git a/Documentation/pycardium/leds.rst b/Documentation/pycardium/leds.rst index e3cae9ab077af93e7d11bbe39e50d5bea425cfb1..d658fb93de1b57d391a31e17712e3bf76833016d 100644 --- a/Documentation/pycardium/leds.rst +++ b/Documentation/pycardium/leds.rst @@ -5,4 +5,10 @@ This is the 11 LEDs above the display and 4 LEDs on the underside of the top-board, in the four corners. .. automodule:: leds - :members: + :members: + +``ledfx`` - LED Effects +======================= + +.. automodule:: ledfx + :members: diff --git a/pycardium/modules/py/ledfx.py b/pycardium/modules/py/ledfx.py index 2181f19c4749282c0d75deaa19f245b9621bfd2a..94a40c2cf9fe5d9cea115c7a9c560ff16f2ff908 100644 --- a/pycardium/modules/py/ledfx.py +++ b/pycardium/modules/py/ledfx.py @@ -24,7 +24,9 @@ def kitt( spectrum=[], halo=False, ): - + """ + LED Animation. + """ kitt_table = [((-math.cos(math.pi * (x / 10.0))) + 1) / 2.0 for x in range(21)] kitt_table = [math.pow(x, power) * (1 - minimum) + minimum for x in kitt_table]