Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions fbsd_gpio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,11 @@ def __call__(self, value=None):
"""Set or get the value of the pin
:param value: If set, set the value of the pin
"""
if value:
if value is None:
return self._controller.pin_get(self._num)
else:
self._controller.pin_set(self._num, value)
return self._controller.pin_get(self._num)


@property
def name(self):
Expand Down