bpod_core.bpod.Module

class bpod_core.bpod.Module

Bases: object

Represents a Bpod module with its configuration and event names.

__init__(_bpod, index, name, is_connected=False, firmware_version=None, n_events=15, _custom_event_names=<factory>) None
Parameters:
Return type:

None

set_relay(enable) None

Enable or disable the serial relay for the module.

Parameters:

enable (bool) – True to enable the relay, False to disable it.

Return type:

None

firmware_version: int | None = None

The firmware version of the module.

index: int

The index of the module.

is_connected: bool = False

Whether the module is connected.

n_events: int = 15

The number of events assigned to the module.

name: str

The name of the module.

property relay: bool

The current state of the serial relay.