Skip to content

Commit

Permalink
[docs] link cross-link SetState/GetState with DigitalInOut class
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Aug 7, 2024
1 parent 42fe448 commit fe280c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions circuitpython_mocks/digitalio/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ def assert_state(self, value: bool | int):


class SetState(_State):
"""A class to represent setting the state of a Digital output pin."""
"""A class to represent setting the state of a
:py:class:`~circuitpython_mocks.digitalio.DigitalInOut` pin."""

def __repr__(self) -> str:
return f"<SetState value='{self.state}'>"


class GetState(_State):
"""A class to represent getting the state of a Digital output pin."""
"""A class to represent getting the state of a
:py:class:`~circuitpython_mocks.digitalio.DigitalInOut` pin."""

def __repr__(self) -> str:
return f"<GetState value='{self.state}'>"

0 comments on commit fe280c6

Please sign in to comment.