CircuitPython/audiopwmio.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 'audiopwmio' 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 PWMAudioOut():
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 def __init__(self, left_channel, *, right_channel=None,
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12 quiescent_value=0x8000):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 def deinit(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 def play(self, sample, *, loop=False):
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 def stop(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 @property
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 def playing(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28 def pause(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31 def resume(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 pass
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 @property
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 def paused(self):
81a2208f13e4 Started with the stubs for CircuitPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 pass

eric ide

mercurial