From 74b4d87eb8949055aab9d597cac6b99a8e302526 Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Tue, 12 Jan 2021 09:15:29 +0100 Subject: [PATCH] Typos --- graphit_pin/gpio.py | 2 +- graphit_pin/pcf8574.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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' -- 2.34.1