To import ExampleDevice, you can either use:
from psychopy_plugin_template.hardware.exampleDevice import ExampleDevice
from psychopy.hardware import ExampleDevice
Blank hardware object showcase how to make a new type of hardware object. If the hardware in question is a response device, such as a button box, you should check out the docs for [ExampleResponseDevice][psychopy_plugin_template.hardware.exampleResponseDevice.ExampleResponseDevice] instead.
Should be deleted before publishing your plugin.
Get all available devices of this type.
List of dictionaries containing the parameters needed to initialise each device.
list[dict]
Generate a dictionary describing this device by finding the profile from getAvailableDevices which represents the same physical device as this object.
Dictionary representing this device
dict
Convert the output of getDeviceProfile to a JSON string.
asString (bool) – If True, then the output will be converted to a string, otherwise will simply be a JSON-friendly dict.
JSON string (or JSON friendly dict) of getDeviceProfile.
str or dict
Determine whether this object represents the same physical device as a given other object.
other (BaseDevice, dict) – Other device object to compare against, or a dict of params.
True if the two objects represent the same physical device
bool