diff --git a/adafruit_cap1188/cap1188.py b/adafruit_cap1188/cap1188.py index 5b87145..c820d21 100644 --- a/adafruit_cap1188/cap1188.py +++ b/adafruit_cap1188/cap1188.py @@ -129,7 +129,7 @@ def __getitem__(self, key): def touched_pins(self): """A tuple of touched state for all pins.""" touched = self.touched() - return tuple([bool(touched >> i & 0x01) for i in range(8)]) + return tuple(bool(touched >> i & 1) for i in range(8)) def touched(self): """Return 8 bit value representing touch state of all pins."""