Skip to content

Commit 1552eab

Browse files
authored
Correction annotation for PCF8591.read()
1 parent 5026e79 commit 1552eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pcf8591/pcf8591.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _half_read(self, channel: Literal[0, 1, 2, 3]) -> None:
9797
with self.i2c_device as i2c:
9898
i2c.write_then_readinto(self._buffer, self._buffer)
9999

100-
def read(self, channel: Literal[0, 1, 2, 3]) -> None:
100+
def read(self, channel: Literal[0, 1, 2, 3]) -> int:
101101
"""Read an analog value from one of the four ADC inputs
102102
103103
:param int channel: The single-ended ADC channel to read from, 0 thru 3

0 commit comments

Comments
 (0)