Permalink
Browse files

BF: Supported light and voice keys by increasing hardware button limit

  • Loading branch information...
martharobinson committed Oct 13, 2017
1 parent f5c1b5a commit b9534a28896ec0aef8d6f7790abfa3031682522a
Showing with 4 additions and 1 deletion.
  1. +4 −1 psychopy/iohub/devices/serial/__init__.py
@@ -496,9 +496,12 @@ class Pstbox(Serial):
def __init__(self, *args, **kwargs):
Serial.__init__(self, *args, **kwargs)
self._nbuttons = 5
self._nbuttons = 7
# Buttons 0--4, from left to right:
# [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._nlamps = 5

0 comments on commit b9534a2

Please sign in to comment.