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.
1 parent 14964a8 commit e6c7f27Copy full SHA for e6c7f27
adafruit_mcp3xxx/analog_in.py
@@ -56,10 +56,11 @@ def __init__(
56
def value(self) -> int:
57
"""Returns the value of an ADC pin as an integer in the range [0, 65535]."""
58
# Initial result is only 10 bits.
59
- result = int(self._mcp.read(self._pin_setting, is_differential=self.is_differential))
+ result = int(
60
+ self._mcp.read(self._pin_setting, is_differential=self.is_differential)
61
+ )
62
# Stretch to 16 bits and cover full range.
63
return (result << 6) | (result >> 4)
- )
64
65
@property
66
def voltage(self) -> float:
0 commit comments