Package psychopy :: Package hardware :: Package crs :: Module bits
[frames] | no frames]

Module bits

source code

Interface to the bits++ (http://www.crsltd.com/) for precise control of contrast

These may one day get built into psychopy.visual

Classes
  BitsBox
The main class to control a bits++ box.
Functions
 
init()
initialise the bits++ box Note that, by default, bits++ will perform gamma correction that you don't want (unless you have the CRS calibration device) (Recommended that you use the BitsBox class rather than calling this directly)
source code
 
setVideoMode(videoMode)
set the video mode of the bits++ (win32 only)
source code
 
reset(noGamma=True)
reset the bits++ box via the USB cable by initialising again Allows the option to turn off gamma correction
source code
Variables
  haveBitsDLL = False
  bits8BITPALETTEMODE = 1
  NOGAMMACORRECT = 16384
  GAMMACORRECT = 32768
  VIDEOENCODEDCOMMS = 524288
  DEBUG = True
Function Details

setVideoMode(videoMode)

source code 

set the video mode of the bits++ (win32 only)

bits8BITPALETTEMODE = 0x00000001 #normal vsg mode

NOGAMMACORRECT = 0x00004000 #No gamma correction mode

GAMMACORRECT = 0x00008000 #Gamma correction mode

VIDEOENCODEDCOMMS = 0x00080000

(Recommended that you use the BitsLUT class rather than calling this directly)