Skip to content

Commit 0eec363

Browse files
authored
Add table for Gain CV, remove unnecessary pass statements
1 parent 969d9f3 commit 0eec363

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

adafruit_as7341.py

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,35 @@ def is_valid(cls, value):
145145

146146

147147
class Gain(CV):
148-
"""Options for ``accelerometer_range``"""
149-
150-
pass # pylint: disable=unnecessary-pass
148+
"""Options for ``accelerometer_range``
149+
150+
+-------------------------------+-------------------------+
151+
| Setting | Gain Value |
152+
+===============================+=========================+
153+
| :py:const:`Gain.GAIN_0_5X` | 0.5 |
154+
+-------------------------------+-------------------------+
155+
| :py:const:`Gain.GAIN_1X` | 1 |
156+
+-------------------------------+-------------------------+
157+
| :py:const:`Gain.GAIN_2X` | 2 |
158+
+-------------------------------+-------------------------+
159+
| :py:const:`Gain.GAIN_4X` | 4 |
160+
+-------------------------------+-------------------------+
161+
| :py:const:`Gain.GAIN_8X` | 8 |
162+
+-------------------------------+-------------------------+
163+
| :py:const:`Gain.GAIN_16X` | 16 |
164+
+-------------------------------+-------------------------+
165+
| :py:const:`Gain.GAIN_32X` | 32 |
166+
+-------------------------------+-------------------------+
167+
| :py:const:`Gain.GAIN_64X` | 64 |
168+
+-------------------------------+-------------------------+
169+
| :py:const:`Gain.GAIN_128X` | 128 |
170+
+-------------------------------+-------------------------+
171+
| :py:const:`Gain.GAIN_256X` | 256 |
172+
+-------------------------------+-------------------------+
173+
| :py:const:`Gain.GAIN_512X` | 512 |
174+
+-------------------------------+-------------------------+
175+
176+
"""
151177

152178

153179
Gain.add_values(
@@ -170,8 +196,6 @@ class Gain(CV):
170196
class SMUX_OUT(CV):
171197
"""Options for ``smux_out``"""
172198

173-
pass # pylint: disable=unnecessary-pass
174-
175199

176200
SMUX_OUT.add_values(
177201
(
@@ -189,8 +213,6 @@ class SMUX_OUT(CV):
189213
class SMUX_IN(CV):
190214
"""Options for ``smux_in``"""
191215

192-
pass # pylint: disable=unnecessary-pass
193-
194216

195217
SMUX_IN.add_values(
196218
(

0 commit comments

Comments
 (0)