-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPIOManager.py
More file actions
53 lines (37 loc) · 1.01 KB
/
GPIOManager.py
File metadata and controls
53 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
__author__ = 'matt'
class GPIOManager():
def __init__(self, configuration):
self.configuration = configuration
def turn_off_fan(self):
pass
def turn_on_fan(self):
pass
def turn_off_ac(self):
pass
def turn_on_ac(self):
pass
def turn_off_heat(self):
pass
def turn_on_heat(self):
pass
class TestGPIOManager(GPIOManager):
def __init__(self, configuration):
GPIOManager.__init__(self, configuration)
def turn_off_fan(self):
# turn off the fan
print("turn fan pin off")
def turn_on_fan(self):
# turn on the fan
print("turn fan pin on")
def turn_off_ac(self):
# turn off the ac
print("turn ac pin off")
def turn_on_ac(self):
# turn on the ac
print("turn ac pin on")
def turn_off_heat(self):
# turn off the heat
print("turn heat pin off")
def turn_on_heat(self):
# turn on the heat
print("turn heat pin on")