Microbit/microbit/__init__.py

changeset 10
f34fe5abe069
parent 0
b3daa2ebea2f
child 11
c8198736bff3
equal deleted inserted replaced
9:843f5ea906d7 10:f34fe5abe069
22 def temperature(): 22 def temperature():
23 pass 23 pass
24 24
25 ###################################################################### 25 ######################################################################
26 26
27 class Button(): 27 class MicroBitButton():
28 def is_pressed(self): 28 def is_pressed(self):
29 pass 29 pass
30 30
31 def was_pressed(self): 31 def was_pressed(self):
32 pass 32 pass
33 33
34 def get_presses(self): 34 def get_presses(self):
35 pass 35 pass
36 36
37 button_a = Button() 37 button_a = MicroBitButton()
38 button_b = Button() 38 button_b = MicroBitButton()
39 39
40 ###################################################################### 40 ######################################################################
41 41
42 class MicroBitDigitalPin(): 42 class MicroBitDigitalPin():
43 PULL_UP = 0 43 PULL_UP = 0

eric ide

mercurial