CircuitPython/analogio.py

Wed, 28 Aug 2019 19:53:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 28 Aug 2019 19:53:19 +0200
changeset 6
81a2208f13e4
child 7
e336d6afc5a6
permissions
-rw-r--r--

Started with the stubs for CircuitPython.

6
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Module containing stubs for API generation of the 'analogio' module.
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 """
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 class AnalogIn():
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 def __init__(self, pin):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 def deinit(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 @property
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 def value(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 @property
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 def reference_voltage(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 class AnalogOut():
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 def __init__(self, pin):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 def deinit(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 @property
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 def value(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 pass

eric ide

mercurial