File tree Expand file tree Collapse file tree 4 files changed +1191
-184
lines changed Expand file tree Collapse file tree 4 files changed +1191
-184
lines changed Original file line number Diff line number Diff line change 626
626
<technologies >
627
627
<technology name =" " >
628
628
<attribute name =" PROD_ID" value =" CONN-13452" constant =" no" />
629
+ <attribute name =" VALUE" value =" micro:bit" constant =" no" />
629
630
</technology >
630
631
</technologies >
631
632
</device >
Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments