From 10c5f5484e8bea867688d59460e875ca84a4c19d Mon Sep 17 00:00:00 2001 From: sommersoft Date: Thu, 22 Feb 2018 22:56:40 -0600 Subject: [PATCH] sphinx docstring indentation fix --- adafruit_ads1x15/differential.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/adafruit_ads1x15/differential.py b/adafruit_ads1x15/differential.py index 1e1f9be..9a4a148 100644 --- a/adafruit_ads1x15/differential.py +++ b/adafruit_ads1x15/differential.py @@ -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 @@ -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) @@ -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.