Skip to content

Commit acc1daa

Browse files
authored
Merge pull request #97 from caternuson/doc_update
2 parents f806739 + 4e8764f commit acc1daa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

adafruit_ads1x15/analog_in.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ def __init__(
4949

5050
@property
5151
def value(self) -> int:
52-
"""Returns the value of an ADC pin as an integer."""
52+
"""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+
"""
5358
return self._ads.read(
5459
self._pin_setting, is_differential=self.is_differential
5560
) << (16 - self._ads.bits)

0 commit comments

Comments
 (0)