Skip to content

Commit

Permalink
BF: Supported light and voice keys by increasing hardware button limit
Browse files Browse the repository at this point in the history
  • Loading branch information
martharobinson committed Oct 13, 2017
1 parent f5c1b5a commit b9534a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion psychopy/iohub/devices/serial/__init__.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -496,9 +496,12 @@ class Pstbox(Serial):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
Serial.__init__(self, *args, **kwargs) Serial.__init__(self, *args, **kwargs)


self._nbuttons = 5 self._nbuttons = 7
# Buttons 0--4, from left to right: # Buttons 0--4, from left to right:
# [1, 2, 4, 8, 16] # [1, 2, 4, 8, 16]
# Buttons 5--6 are connected devices which generate button presses
# (e.g. a refresh detector which responds when a certain luminance is
# exceeded)
self._button_bytes = 2**N.arange(self._nbuttons, dtype='uint8') self._button_bytes = 2**N.arange(self._nbuttons, dtype='uint8')


self._nlamps = 5 self._nlamps = 5
Expand Down

0 comments on commit b9534a2

Please sign in to comment.