Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LEDMatrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Teckids
Projekt Hack-n-Fun
Material und Vorlagen
LEDMatrix
Commits
aa30928b
Commit
aa30928b
authored
4 months ago
by
Florian kroker
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into 'main'
Update file pictures.py See merge request
!1
parents
af59b5ba
8cef2599
No related branches found
No related tags found
1 merge request
!1
Update file pictures.py
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pictures.py
+2
-13
2 additions, 13 deletions
pictures.py
with
2 additions
and
13 deletions
pictures.py
+
2
−
13
View file @
aa30928b
...
...
@@ -2,18 +2,7 @@ from myfrabuled import WEMOSMatrixLEDShield
from
time
import
sleep
,
time
,
ticks_ms
def
get_picture
(
pic
):
picture
=
[[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
]]
for
i
in
range
(
8
):
for
j
in
range
(
8
):
picture
[
i
][
j
]
=
pictures
[
pic
][
i
][
j
]
return
picture
return
pictures
[
pic
]
pictures
=
{
'
clear
'
:
[[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
...
...
@@ -94,4 +83,4 @@ if __name__ == "__main__":
shield
=
WEMOSMatrixLEDShield
()
shield
.
blit
(
pictures
[
'
l_arrow
'
])
shield
.
update
()
sleep
(
0.8
)
\ No newline at end of file
sleep
(
0.8
)
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