bpod_core.bpod.Module
- class bpod_core.bpod.Module
Bases:
objectRepresents 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
- load_serial_message(message_id, message_bytes) bool
Load a serial message targeting the module.
Serial messages are byte sequences targeting a specific module that can be triggered as output actions during a state machine run. Each message is identified by a
message_id.- Parameters:
- Returns:
- Return type:
- Raises:
pydantic.ValidationError – If the provided parameters cannot be validated or coerced to the expected type.
ValueError – If
message_id, ormessage_byteslength is out of range.