From: Benjamin Braatz Date: Tue, 12 Jan 2021 08:15:29 +0000 (+0100) Subject: Typos X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=74b4d87eb8949055aab9d597cac6b99a8e302526;p=graphit%2Fpin-py.git Typos --- diff --git a/graphit_pin/gpio.py b/graphit_pin/gpio.py index 343883b..b14badd 100644 --- a/graphit_pin/gpio.py +++ b/graphit_pin/gpio.py @@ -17,7 +17,7 @@ class GPIOInputPin(PinInterface, graphit_event.EventEmitterMixin): 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() diff --git a/graphit_pin/pcf8574.py b/graphit_pin/pcf8574.py index 41fcfd9..aa8497f 100644 --- a/graphit_pin/pcf8574.py +++ b/graphit_pin/pcf8574.py @@ -102,9 +102,6 @@ class PCF8574Output(graphit_event.EventEmitterMixin): 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'