-
Notifications
You must be signed in to change notification settings - Fork 1
/
amogus.py
49 lines (40 loc) · 924 Bytes
/
amogus.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
from microbit import *
amogus = [
Image("11111:"
"11111:"
"11111:"
"11111:"
"11111"),
Image("23432:"
"44322:"
"44442:"
"24242:"
"23232"),
Image("35653:"
"66433:"
"66663:"
"36463:"
"25352"),
Image("27872:"
"88444:"
"88882:"
"28380:"
"17271"),
Image("09990:"
"99555:"
"99990:"
"09990:"
"09090"),
]
image_empty = Image("00000:"
"00000:"
"00000:"
"00000:"
"00000")
show_image = image_empty
while True:
if button_a.was_pressed():
display.show(amogus[::-1], delay=200)
display.show(image_empty)
elif button_b.was_pressed():
display.show(amogus, delay=200)