We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ebf4e4 + a2332d6 commit 0e1f9dfCopy full SHA for 0e1f9df
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