def getDirection(self): """The last direction the counter value changed. :returns: The last direction the counter value changed. :rtype: bool """ return hal.getCounterDirection(self.counter)
def getDirection(self): """The last direction the counter value changed. :returns: The last direction the counter value changed. :rtype: bool """ if self.counter is None: raise ValueError("operation on freed port") return hal.getCounterDirection(self.counter)