We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f806739 + 4e8764f commit acc1daaCopy full SHA for acc1daa
adafruit_ads1x15/analog_in.py
@@ -49,7 +49,12 @@ def __init__(
49
50
@property
51
def value(self) -> int:
52
- """Returns the value of an ADC pin as an integer."""
+ """The value on the analog pin between 0 and 65535
53
+ inclusive (16-bit). (read-only)
54
+
55
+ Even if the underlying analog to digital converter (ADC) is
56
+ lower resolution, the value is 16-bit.
57
+ """
58
return self._ads.read(
59
self._pin_setting, is_differential=self.is_differential
60
) << (16 - self._ads.bits)
0 commit comments