Skip to content
Snippets Groups Projects
Commit aa30928b authored by Florian kroker's avatar Florian kroker
Browse files

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!1Update file pictures.py
......@@ -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)
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