Skip to main content

Mouse joystick interface for communicating with mouse joystick controller.

Project description

This Python package creates a class named MouseJoystickInterface.

Authors:

Peter Polidoro <peter@polidoro.io>

License:

BSD

Example Usage:

dev = MouseJoystickInterface() # Might automatically find devices if available
# if devices not found automatically, specify ports directly
dev = MouseJoystickInterface(use_ports=['/dev/ttyACM0','/dev/ttyACM0']) # Linux specific ports
dev = MouseJoystickInterface(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X specific ports
dev = MouseJoystickInterface(use_ports=['COM3','COM4']) # Windows specific ports
# abort_assay prematurely stops a running assay and leaves the rig ready to start a new assay
dev.abort_assay()
# start_assay is the main method that starts the assay, collects assay data, and saves data files
dev.start_assay(set_path='~/set_example.csv')

# optional mouse_joystick_controller methods
dev.mouse_joystick_controller.set_properties_to_defaults(['ALL'])
dev.mouse_joystick_controller.get_property_values(['ALL'])
dev.mouse_joystick_controller.repeat_aborted_trial('setValue',False)
dev.mouse_joystick_controller.get_assay_status()
dev.mouse_joystick_controller.move_joystick_to_base_position()
dev.mouse_joystick_controller.move_joystick_to_reach_position()
duration = 10
count = 1
dev.mouse_joystick_controller.activate_lickport(duration,count)
dev.mouse_joystick_controller.get_trial_timing_data()
dev.mouse_joystick_controller.abort_trial()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mouse_joystick_interface-4.0.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

mouse_joystick_interface-4.0.5-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mouse_joystick_interface-4.0.5.tar.gz.

File metadata

  • Download URL: mouse_joystick_interface-4.0.5.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for mouse_joystick_interface-4.0.5.tar.gz
Algorithm Hash digest
SHA256 50c5cb314f00c1920a3fc2b9ac295d60d70b152c8ef5f2332b2ec6946cbf4dcf
MD5 a0ab3d19e3639ce6dd9453a8ddc53449
BLAKE2b-256 67ac2bc9d1ecb08eff0c84fdc2b0f996d140b7dcb5361f44a30411927e4bd3a5

See more details on using hashes here.

Provenance

File details

Details for the file mouse_joystick_interface-4.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: mouse_joystick_interface-4.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for mouse_joystick_interface-4.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 399d76988525fd0f54b69c5eb7d58e8e70aeff51dcb96cb75a45154020b07f3d
MD5 1824096df1575e41cb3e8d191e9bd3a6
BLAKE2b-256 1d5b7adcb447fe38aaeca00c6c653506dba012937ea5f921b359d1dd1d82ca71

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page