Skip to content

Commit

Permalink
fixing black
Browse files Browse the repository at this point in the history
  • Loading branch information
siddacious committed Dec 22, 2020
1 parent f41eeaa commit 582055a
Showing 1 changed file with 46 additions and 47 deletions.
93 changes: 46 additions & 47 deletions adafruit_ltr390.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ def is_valid(cls, value):
class Gain(CV):
"""Options for `gain`
+---------------------------+----------------------------+
| Gain | Raw Measurement Multiplier |
+===========================+============================+
| :py:const:`Gain.GAIN_1X` | 1 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_3X` | 3 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_6X` | 6 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_9X` | 9 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_18X` | 18 |
+---------------------------+----------------------------+
+---------------------------+----------------------------+
| Gain | Raw Measurement Multiplier |
+===========================+============================+
| :py:const:`Gain.GAIN_1X` | 1 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_3X` | 3 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_6X` | 6 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_9X` | 9 |
+---------------------------+----------------------------+
| :py:const:`Gain.GAIN_18X` | 18 |
+---------------------------+----------------------------+
"""

Expand All @@ -140,24 +140,23 @@ class Gain(CV):
class Resolution(CV):
"""Options for `resolution`
+-----------------------------------------+------------------------------------------------------+
| Resolution | Internal ADC Resolution |
+=========================================+======================================================+
| :py:const:`Resolution.RESOLUTION_13BIT` | 13 bits |
+-----------------------------------------+------------------------------------------------------+
| :py:const:`Resolution.RESOLUTION_16BIT` | 16 bits |
+-----------------------------------------+------------------------------------------------------+
| :py:const:`Resolution.RESOLUTION_17BIT` | 17 bits |
+-----------------------------------------+------------------------------------------------------+
| :py:const:`Resolution.RESOLUTION_18BIT` | 18 bits |
+-----------------------------------------+------------------------------------------------------+
| :py:const:`Resolution.RESOLUTION_19BIT` | 19 bits |
+-----------------------------------------+------------------------------------------------------+
| :py:const:`Resolution.RESOLUTION_20BIT` | 20 bits |
+-----------------------------------------+------------------------------------------------------+
+-----------------------------------------+-------------------------+
| Resolution | Internal ADC Resolution |
+=========================================+=========================+
| :py:const:`Resolution.RESOLUTION_13BIT` | 13 bits |
+-----------------------------------------+-------------------------+
| :py:const:`Resolution.RESOLUTION_16BIT` | 16 bits |
+-----------------------------------------+-------------------------+
| :py:const:`Resolution.RESOLUTION_17BIT` | 17 bits |
+-----------------------------------------+-------------------------+
| :py:const:`Resolution.RESOLUTION_18BIT` | 18 bits |
+-----------------------------------------+-------------------------+
| :py:const:`Resolution.RESOLUTION_19BIT` | 19 bits |
+-----------------------------------------+-------------------------+
| :py:const:`Resolution.RESOLUTION_20BIT` | 20 bits |
+-----------------------------------------+-------------------------+
"""
"""


Resolution.add_values(
Expand All @@ -175,23 +174,23 @@ class Resolution(CV):
class MeasurementDelay(CV):
"""Options for `measurement_delay`
+-------------------------------------------+--------------------------------------+
| MeasurementDelay | Time Between Measurement Cycles (ms) |
+===========================================+======================================+
| :py:const:`MeasurementDelay.DELAY_25MS` | 25 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_50MS` | 50 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_100MS` | 100 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_200MS` | 200 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_500MS` | 500 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_1000MS` | 1000 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_2000MS` | 2000 |
+-------------------------------------------+--------------------------------------+
+-------------------------------------------+--------------------------------------+
| MeasurementDelay | Time Between Measurement Cycles (ms) |
+===========================================+======================================+
| :py:const:`MeasurementDelay.DELAY_25MS` | 25 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_50MS` | 50 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_100MS` | 100 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_200MS` | 200 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_500MS` | 500 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_1000MS` | 1000 |
+-------------------------------------------+--------------------------------------+
| :py:const:`MeasurementDelay.DELAY_2000MS` | 2000 |
+-------------------------------------------+--------------------------------------+
"""

Expand Down

0 comments on commit 582055a

Please sign in to comment.