1
- # The MIT License (MIT)
1
+ # SPDX-FileCopyrightText: 2019 Bryan Siepert for Adafruit Industries
2
2
#
3
- # Copyright (c) 2019 Bryan Siepert for Adafruit Industries
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # SPDX-License-Identifier: MIT
4
+
22
5
"""
23
6
`adafruit_bd3491fs`
24
7
================================================================================
65
48
class Input : # pylint: disable=too-few-public-methods,invalid-name
66
49
"""Options for ``active_input``
67
50
68
- +-----------------+------------------+
69
- | ``Input`` | Input Pair |
70
- +=================+==================+
71
- | ``Input.A`` | Inputs A1 and A2 |
72
- +-----------------+------------------+
73
- | ``Input.B`` | Inputs B1 and B2 |
74
- +-----------------+------------------+
75
- | ``Input.C`` | Inputs C1 and C2 |
76
- +-----------------+------------------+
77
- | ``Input.D`` | Inputs D1 and D2 |
78
- +-----------------+------------------+
79
- | ``Input.E`` | Inputs E1 and E2 |
80
- +-----------------+------------------+
81
- | ``Input.F`` | Inputs F1 and F2 |
82
- +-----------------+------------------+
83
- | ``Input.SHORT`` | Short inputs |
84
- +-----------------+------------------+
85
- | ``Input.MUTE`` | Mute all |
86
- +-----------------+------------------+
51
+ +-----------------+------------------+
52
+ | ``Input`` | Input Pair |
53
+ +=================+==================+
54
+ | ``Input.A`` | Inputs A1 and A2 |
55
+ +-----------------+------------------+
56
+ | ``Input.B`` | Inputs B1 and B2 |
57
+ +-----------------+------------------+
58
+ | ``Input.C`` | Inputs C1 and C2 |
59
+ +-----------------+------------------+
60
+ | ``Input.D`` | Inputs D1 and D2 |
61
+ +-----------------+------------------+
62
+ | ``Input.E`` | Inputs E1 and E2 |
63
+ +-----------------+------------------+
64
+ | ``Input.F`` | Inputs F1 and F2 |
65
+ +-----------------+------------------+
66
+ | ``Input.SHORT`` | Short inputs |
67
+ +-----------------+------------------+
68
+ | ``Input.MUTE`` | Mute all |
69
+ +-----------------+------------------+
87
70
88
71
"""
89
72
@@ -100,29 +83,29 @@ class Input: # pylint: disable=too-few-public-methods,invalid-name
100
83
class Level : # pylint: disable=too-few-public-methods
101
84
"""Options for ``imput_gain``
102
85
103
- +----------------------+-------+
104
- | ``Level`` | Value |
105
- +======================+=======+
106
- | ``Level.LEVEL_0DB`` | 0dB |
107
- +----------------------+-------+
108
- | ``Level.LEVEL_2DB`` | 2dB |
109
- +----------------------+-------+
110
- | ``Level.LEVEL_4DB`` | 4dB |
111
- +----------------------+-------+
112
- | ``Level.LEVEL_6DB`` | 6dB |
113
- +----------------------+-------+
114
- | ``Level.LEVEL_8DB`` | 8dB |
115
- +----------------------+-------+
116
- | ``Level.LEVEL_10DB`` | 10dB |
117
- +----------------------+-------+
118
- | ``Level.LEVEL_12DB`` | 12dB |
119
- +----------------------+-------+
120
- | ``Level.LEVEL_14DB`` | 14dB |
121
- +----------------------+-------+
122
- | ``Level.LEVEL_16DB`` | 16dB |
123
- +----------------------+-------+
124
- | ``Level.LEVEL_20DB`` | 20dB |
125
- +----------------------+-------+
86
+ +----------------------+-------+
87
+ | ``Level`` | Value |
88
+ +======================+=======+
89
+ | ``Level.LEVEL_0DB`` | 0dB |
90
+ +----------------------+-------+
91
+ | ``Level.LEVEL_2DB`` | 2dB |
92
+ +----------------------+-------+
93
+ | ``Level.LEVEL_4DB`` | 4dB |
94
+ +----------------------+-------+
95
+ | ``Level.LEVEL_6DB`` | 6dB |
96
+ +----------------------+-------+
97
+ | ``Level.LEVEL_8DB`` | 8dB |
98
+ +----------------------+-------+
99
+ | ``Level.LEVEL_10DB`` | 10dB |
100
+ +----------------------+-------+
101
+ | ``Level.LEVEL_12DB`` | 12dB |
102
+ +----------------------+-------+
103
+ | ``Level.LEVEL_14DB`` | 14dB |
104
+ +----------------------+-------+
105
+ | ``Level.LEVEL_16DB`` | 16dB |
106
+ +----------------------+-------+
107
+ | ``Level.LEVEL_20DB`` | 20dB |
108
+ +----------------------+-------+
126
109
127
110
"""
128
111
@@ -141,7 +124,7 @@ class Level: # pylint: disable=too-few-public-methods
141
124
class BD3491FS : # pylint: disable=too-many-instance-attributes
142
125
"""Driver for the Rohm BD3491FS audio processor
143
126
144
- :param ~busio.I2C i2c_bus: The I2C bus the BD3491FS is connected to.
127
+ :param ~busio.I2C i2c_bus: The I2C bus the BD3491FS is connected to.
145
128
"""
146
129
147
130
_input_selector = UnaryStruct (_INPUT_SELECTOR , "<B" )
0 commit comments