Skip to content

Commit

Permalink
Merge pull request #15 from lesamouraipourpre/patch-1
Browse files Browse the repository at this point in the history
Update slider cap_map
  • Loading branch information
makermelissa authored May 24, 2021
2 parents e649e70 + 207607b commit 6233047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_funhouse/peripherals.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def slider(self):
Return the slider position value in the range of 0.0-1.0 or None if not touched
"""
val = 0
cap_map = b"\x01\x03\x02\x05\x04\x0c\x08\x18\x10"
cap_map = b"\x01\x03\x02\x06\x04\x0c\x08\x18\x10"
for cap in range(5):
if self._ctp[cap + 3].value:
val += 1 << (cap)
Expand Down

0 comments on commit 6233047

Please sign in to comment.