Skip to content

Commit

Permalink
sphinx docstring indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sommersoft committed Feb 23, 2018
1 parent 0824a2f commit 10c5f54
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions adafruit_ads1x15/differential.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def __getitem__(self, key):
def read_adc_difference(self, differential, gain=1, data_rate=None):
"""Read the difference between two ADC channels and return the ADC value
as a signed integer result. Differential must be one of:
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
"""
assert 0 <= differential <= 3, 'Differential must be a value within 0-3!'
# Perform a single shot read using the provided differential value
Expand All @@ -59,10 +59,10 @@ def read_adc_difference(self, differential, gain=1, data_rate=None):
def read_volts_difference(self, differential, gain=1, data_rate=None):
"""Read the difference between two ADC channels and return the voltage value
as a floating point result. Differential must be one of:
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
"""
assert 0 <= differential <= 3, 'Differential must be a value within 0-3!'
raw = self.read_adc_difference(differential, gain, data_rate)
Expand All @@ -72,10 +72,10 @@ def read_volts_difference(self, differential, gain=1, data_rate=None):
def start_adc_difference(self, differential, gain=1, data_rate=None):
"""Start continuous ADC conversions between two ADC channels. Differential
must be one of:
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
- 0 = Channel 0 minus channel 1
- 1 = Channel 0 minus channel 3
- 2 = Channel 1 minus channel 3
- 3 = Channel 2 minus channel 3
Will return an initial conversion result, then call the get_last_result()
function continuously to read the most recent conversion result. Call
stop_adc() to stop conversions.
Expand Down

0 comments on commit 10c5f54

Please sign in to comment.