Compare commits

...

1 commit

Author SHA1 Message Date
8ec60b6188 remove bad-whitespace pylint directive 2020-08-23 11:01:51 -05:00
2 changed files with 0 additions and 4 deletions

View file

@ -34,7 +34,6 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15.git"
from micropython import const from micropython import const
from adafruit_bus_device.i2c_device import I2CDevice from adafruit_bus_device.i2c_device import I2CDevice
# pylint: disable=bad-whitespace
_ADS1X15_DEFAULT_ADDRESS = const(0x48) _ADS1X15_DEFAULT_ADDRESS = const(0x48)
_ADS1X15_POINTER_CONVERSION = const(0x00) _ADS1X15_POINTER_CONVERSION = const(0x00)
_ADS1X15_POINTER_CONFIG = const(0x01) _ADS1X15_POINTER_CONFIG = const(0x01)
@ -49,7 +48,6 @@ _ADS1X15_CONFIG_GAIN = {
8: 0x0800, 8: 0x0800,
16: 0x0A00, 16: 0x0A00,
} }
# pylint: enable=bad-whitespace
class Mode: class Mode:

View file

@ -28,10 +28,8 @@ differential ADC readings.
* Author(s): Carter Nelson, adapted from MCP3xxx original by Brent Rubell * Author(s): Carter Nelson, adapted from MCP3xxx original by Brent Rubell
""" """
# pylint: disable=bad-whitespace
_ADS1X15_DIFF_CHANNELS = {(0, 1): 0, (0, 3): 1, (1, 3): 2, (2, 3): 3} _ADS1X15_DIFF_CHANNELS = {(0, 1): 0, (0, 3): 1, (1, 3): 2, (2, 3): 3}
_ADS1X15_PGA_RANGE = {2 / 3: 6.144, 1: 4.096, 2: 2.048, 4: 1.024, 8: 0.512, 16: 0.256} _ADS1X15_PGA_RANGE = {2 / 3: 6.144, 1: 4.096, 2: 2.048, 4: 1.024, 8: 0.512, 16: 0.256}
# pylint: enable=bad-whitespace
class AnalogIn: class AnalogIn: