diff --git a/adafruit_ads1x15/analog_in.py b/adafruit_ads1x15/analog_in.py index 8e2cc35..055d759 100644 --- a/adafruit_ads1x15/analog_in.py +++ b/adafruit_ads1x15/analog_in.py @@ -70,7 +70,8 @@ def __init__(self, ads, positive_pin, negative_pin=None): @property def value(self): """Returns the value of an ADC pin as an integer.""" - return self._ads.read(self._pin_setting, is_differential=self.is_differential) + return self._ads.read(self._pin_setting, + is_differential=self.is_differential) << (16 - self._ads.bits) @property def voltage(self):