Skip to content

Commit 1812f4d

Browse files
authored
Add files via upload
1 parent 480d0df commit 1812f4d

File tree

100 files changed

+16905
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+16905
-0
lines changed
406 KB
Binary file not shown.
284 KB
Binary file not shown.

Assessments/Micro PET Test 1.docx

264 KB
Binary file not shown.

Assessments/Micro PET Test 2.docx

98.8 KB
Binary file not shown.
230 KB
Binary file not shown.
218 KB
Binary file not shown.

Healthy Eating (1 to 6)/Micropython for microbit_L1/Baseline test answers.rtf

+990
Large diffs are not rendered by default.

Healthy Eating (1 to 6)/Micropython for microbit_L1/Baseline test.rtf

+968
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
5+
while True:
6+
display.scroll('Hello, World!')
7+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
boat = Image("05050:"
5+
"05050:"
6+
"05050:"
7+
"99999:"
8+
"09990")
9+
10+
display.show(boat)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
from time import sleep
4+
5+
dot1 = Image("00000:"
6+
"00000:"
7+
"00000:"
8+
"00000:"
9+
"50000")
10+
11+
dot2 = Image("00000:"
12+
"00000:"
13+
"00000:"
14+
"00000:"
15+
"05000")
16+
17+
dot3 = Image("00000:"
18+
"00000:"
19+
"00000:"
20+
"00000:"
21+
"00500")
22+
23+
display.show(dot1)
24+
sleep(0.5)
25+
display.show(dot2)
26+
sleep(0.5)
27+
display.show(dot3)
28+
sleep(0.5)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Add your Python code here. E.g.
2+
3+
from microbit import *
4+
5+
while True:
6+
if button_a.is_pressed():
7+
display.show(Image.HAPPY)
8+
else:
9+
display.show(Image.SAD)
10+
11+
display.clear()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if button_a.is_pressed():
6+
display.show(Image.HAPPY)
7+
elif button_b.is_pressed():
8+
display.show(Image.SAD)
9+
else:
10+
display.show(Image.ASLEEP)
11+
12+
display.clear()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if button_a.is_pressed():
6+
display.scroll("Yes")
7+
elif button_b.is_pressed():
8+
display.show(Image.SAD)
9+
else:
10+
display.show(Image.ASLEEP)
11+
12+
display.clear()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if button_a.is_pressed() and button_b.is_pressed():
6+
display.scroll("Yes")
7+
elif button_b.is_pressed():
8+
display.show(Image.SAD)
9+
elif button_a.is_pressed():
10+
display.show(Image.GHOST)
11+
else:
12+
display.show(Image.ASLEEP)
13+
14+
display.clear()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
shopping_list = ("cheese", "beans", "apples")
5+
x = 0
6+
7+
while True:
8+
if button_a.is_pressed():
9+
display.scroll(str(shopping_list[x]))
10+
if button_b.is_pressed():
11+
x = x + 1
12+
sleep(1000)
13+
else:
14+
display.clear()
15+
16+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if pin0.is_touched():
6+
display.show(Image.SQUARE_SMALL)
7+
else:
8+
display.show(Image.SQUARE)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if pin0.is_touched():
6+
display.show(Image.SQUARE_SMALL)
7+
sleep(500)
8+
display.show(Image.SQUARE)
9+
sleep(500)
10+
else:
11+
display.show(Image.CHESSBOARD)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
while True:
5+
if pin0.is_touched():
6+
display.show(Image.SQUARE_SMALL)
7+
sleep(500)
8+
display.show(Image.SQUARE)
9+
sleep(500)
10+
elif pin1.is_touched():
11+
display.scroll("SAFE")
12+
else:
13+
display.show(Image.CHESSBOARD)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
total = 0
5+
6+
while True:
7+
if button_a.is_pressed():
8+
total = total + 1
9+
sleep(100)
10+
display.scroll(total)
11+
elif button_b.is_pressed():
12+
total = total - 2
13+
sleep(100)
14+
display.show(total)
15+
elif button_a.is_pressed() and button_b.is_pressed():
16+
total = 0
17+
sleep(100)
18+
display.show(total)
19+
else:
20+
display.show(Image.SMILE)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 commit comments

Comments
 (0)