Skip to content
Snippets Groups Projects
Verified Commit cb222f6a authored by rahix's avatar rahix
Browse files

docs: Document ledfx module


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent d3106d0e
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment