Skip to content

Commit 516f2ad

Browse files
author
Byron Jacquot
committed
Adding pokehome connectors & a little test code
1 parent 91655be commit 516f2ad

File tree

4 files changed

+1191
-184
lines changed

4 files changed

+1191
-184
lines changed

Eagle-libraries/Micro_Bit_Parts.lbr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@
626626
<technologies>
627627
<technology name="">
628628
<attribute name="PROD_ID" value="CONN-13452" constant="no"/>
629+
<attribute name="VALUE" value="micro:bit" constant="no"/>
629630
</technology>
630631
</technologies>
631632
</device>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add your Python code here. E.g.
2+
from microbit import *
3+
4+
junkup = Image ("99999:77777:55555:33333:99999")
5+
junkl = Image ("97531:97531:97531:97531:97531")
6+
junkr = Image ("13579:13579:13579:13579:13579")
7+
8+
while True:
9+
# if button_a.is_pressed() and button_b.is_pressed():
10+
if pin0.is_touched():
11+
display.show(junkup)
12+
# elif button_a.is_pressed():
13+
elif pin1.is_touched():
14+
display.show(junkl)
15+
# elif button_b.is_pressed():
16+
elif pin2.is_touched():
17+
display.show(junkr)
18+
else:
19+
display.clear()
20+
21+
sleep(10)

0 commit comments

Comments
 (0)