Skip to content

Commit

Permalink
Merge pull request #362 from tapetersen/master
Browse files Browse the repository at this point in the history
Documentation fix of i2c docstrings
  • Loading branch information
eblot authored Nov 29, 2023
2 parents d9233c4 + ea4d2f5 commit 5282c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyftdi/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def write(self, out: Union[bytes, bytearray, Iterable[int]],

def read_from(self, regaddr: int, readlen: int = 0,
relax: bool = True, start: bool = True) -> bytes:
"""Read one or more bytes from a remote slave
"""Read one or more bytes from a given register at remote slave
:param regaddr: slave register address to read from
:param readlen: count of bytes to read out.
Expand All @@ -134,7 +134,7 @@ def read_from(self, regaddr: int, readlen: int = 0,
def write_to(self, regaddr: int,
out: Union[bytes, bytearray, Iterable[int]],
relax: bool = True, start: bool = True):
"""Read one or more bytes from a remote slave
"""Write one or more bytes to a given register at a remote slave
:param regaddr: slave register address to write to
:param out: the byte buffer to send
Expand Down

0 comments on commit 5282c18

Please sign in to comment.