-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
50 lines (48 loc) · 924 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from microbit import *
# Define the cube frames
cube_frames = [
Image("00000:"
"09090:"
"09990:"
"09090:"
"00000"),
Image("00000:"
"00990:"
"09990:"
"09000:"
"00000"),
Image("00000:"
"00000:"
"09999:"
"00000:"
"00000"),
Image("00000:"
"09000:"
"09990:"
"00990:"
"00000"),
Image("00000:"
"09090:"
"09990:"
"09090:"
"00000"),
Image("00000:"
"00990:"
"09990:"
"09000:"
"00000"),
Image("00000:"
"00000:"
"09999:"
"00000:"
"00000"),
Image("00000:"
"09000:"
"09990:"
"00990:"
"00000")
]
while True:
for frame in cube_frames:
display.show(frame)
sleep(100)