Verified Commit cb222f6a authored by Rahix's avatar Rahix

docs: Document ledfx module

Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent d3106d0e
......@@ -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:
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment