Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Arist
firmware
Commits
cb222f6a
Verified
Commit
cb222f6a
authored
Aug 12, 2019
by
Rahix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Document ledfx module
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
d3106d0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Documentation/pycardium/leds.rst
Documentation/pycardium/leds.rst
+7
-1
pycardium/modules/py/ledfx.py
pycardium/modules/py/ledfx.py
+3
-1
No files found.
Documentation/pycardium/leds.rst
View file @
cb222f6a
...
...
@@ -6,3 +6,9 @@ top-board, in the four corners.
.. automodule:: leds
:members:
``ledfx`` - LED Effects
=======================
.. automodule:: ledfx
:members:
pycardium/modules/py/ledfx.py
View file @
cb222f6a
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment