Skip to content

Commit dbd0b70

Browse files
committed
DigitalOutputProtocol: add method to invert the value of a digital output
The "invert" method should invert the value of a digital output. Signed-off-by: Perry Melange <[email protected]>
1 parent c944ce6 commit dbd0b70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

labgrid/protocol/digitaloutputprotocol.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ def get(self):
1313
def set(self, status):
1414
"""Implementations should set the status of the digital output"""
1515
raise NotImplementedError
16+
17+
@abc.abstractmethod
18+
def invert(self):
19+
"""Implementations should invert the the status of the digital output"""

0 commit comments

Comments
 (0)