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 |