def _onLoopChange(value: bool):
if self._value != value:
self._value = value
- self._emit('change', self.__value)
+ self._emit('change', self._value)
loop = asyncio.get_running_loop()
assert pin >= 0 and pin <= 7, 'pin must be >= 0 and <= 7'
return not bool(self._values & (1 << pin))
- def getValues(self) -> int:
- return (~self.__values & 0xFF)
-
def setValue(self, pin: int, value: bool) -> None:
assert isinstance(pin, int), 'pin must be an integer'
assert pin >= 0 and pin <= 7, 'pin must be >= 0 and <= 7'