FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonCollection/ledMatrixModule.py at master · marcelpetrick/pythonCollection · GitHub
marcelpetrick
/
pythonCollection
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonCollection
/
ledMatrixModule.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 551 Bytes
Breadcrumbs
pythonCollection
/
ledMatrixModule.py
Copy path
File metadata and controls
17 lines (12 loc) · 551 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# quick test: 5x5 matrix with brightness from
# 100% shall be: all 25 led on
# 1 LED would be 4 %; fill up linewise; top-down
# the last one maybe blinks
#------------------------------
def
computeMatrix
(
number
):
returnString
=
""
# newline either by : or with \n
returnString
+=
"90009:"
+
"07070:"
+
"00200:"
+
"90009:"
+
"07070:"
# for now hardcoded; use something like number//4%25 for the remainder
# problem: that string can't be auto-converted to Image-type; super weird ..
return
returnString
print
(
computeMatrix
(
80
))
Back
|
FazBrowse Home
|
New Git URL