Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
firmware
Commits
cb222f6a
Verified
Commit
cb222f6a
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
docs: Document ledfx module
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
d3106d0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/pycardium/leds.rst
+7
-1
7 additions, 1 deletion
Documentation/pycardium/leds.rst
pycardium/modules/py/ledfx.py
+3
-1
3 additions, 1 deletion
pycardium/modules/py/ledfx.py
with
10 additions
and
2 deletions
Documentation/pycardium/leds.rst
+
7
−
1
View file @
cb222f6a
...
...
@@ -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:
This diff is collapsed.
Click to expand it.
pycardium/modules/py/ledfx.py
+
3
−
1
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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment