We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ebf4e4 commit a2332d6Copy full SHA for a2332d6
adafruit_cap1188/cap1188.py
@@ -129,7 +129,7 @@ def __getitem__(self, key):
129
def touched_pins(self):
130
"""A tuple of touched state for all pins."""
131
touched = self.touched()
132
- return tuple([bool(touched >> i & 0x01) for i in range(8)])
+ return tuple(bool(touched >> i & 1) for i in range(8))
133
134
def touched(self):
135
"""Return 8 bit value representing touch state of all pins."""
0 commit comments