def __init__(self): gi.generate_constants(self) gi.generate_variables(self) pygame.init() pygame.mouse.set_visible(not pygame.mouse.set_visible) self.clock = pygame.time.Clock() if self.CONFIG['fullscreen']: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT), pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT))
def __init__(self): gi.generate_constants(self) gi.generate_variables(self) pygame.init() pygame.mouse.set_visible(not pygame.mouse.set_visible) self.clock = pygame.time.Clock() if SENSOR_ACTIVE: self.daq = Pydaq('Dev3/ai0:1', 60, lp_filt_freq=14, lp_filt_order=3, force_params='force_params.txt') if self.CONFIG['fullscreen']: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT), pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT))
def __init__(self): gi.generate_constants(self) gi.generate_variables(self) pygame.init() pygame.mouse.set_visible(not pygame.mouse.set_visible) self.clock = pygame.time.Clock() if SENSOR_ACTIVE: self.daq = Pydaq(self.DEVICE_NAME, self.FRAME_RATE, self.LP_FILT_FREQ, self.LP_FILT_ORDER, self.FORCE_PARAMS) if self.CONFIG['fullscreen']: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT), pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT))
def __init__(self): gi.generate_constants(self) gi.generate_variables(self) pygame.init() pygame.mouse.set_visible(not pygame.mouse.set_visible) self.clock = pygame.time.Clock() if SENSOR_ACTIVE: self.daq = Pydaq(self.ANALOG_IN_CHANS, self.DIGITAL_OUT_CHANS, self.FRAME_RATE, self.LP_FILT_FREQ, self.LP_FILT_ORDER, self.FORCE_PARAMS) if self.CONFIG['sensor-type'] == 'optical': self.daq.set_volts_zero_init() if self.CONFIG['fullscreen']: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT), pygame.FULLSCREEN) else: self.screen = pygame.display.set_mode( (self.SCREEN_WIDTH, self.SCREEN_HEIGHT))
def __init__(self): gi.generate_constants(self, args.subjectid, args.sessionnum) gi.generate_variables(self)