CircuitPython/analogio.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
equal deleted inserted replaced
6:81a2208f13e4 7:e336d6afc5a6
6 """ 6 """
7 Module containing stubs for API generation of the 'analogio' module. 7 Module containing stubs for API generation of the 'analogio' module.
8 """ 8 """
9 9
10 class AnalogIn(): 10 class AnalogIn():
11 value = 0
12 reference_voltage = 0
13
11 def __init__(self, pin): 14 def __init__(self, pin):
12 pass 15 pass
13 16
14 def deinit(self): 17 def deinit(self):
15 pass 18 pass
16
17 @property
18 def value(self):
19 pass
20
21 @property
22 def reference_voltage(self):
23 pass
24 19
25 class AnalogOut(): 20 class AnalogOut():
21 value = 0
22
26 def __init__(self, pin): 23 def __init__(self, pin):
27 pass 24 pass
28 25
29 def deinit(self): 26 def deinit(self):
30 pass 27 pass
31
32 @property
33 def value(self):
34 pass

eric ide

mercurial