Module¶
- class bpod_core.bpod.Module ¶
Bases:
objectRepresents a Bpod module with its configuration and event names.
- load_serial_message(message_id, message_bytes) ¶
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:
ValidationError – If the provided parameters cannot be validated or coerced to the expected type.
ValueError – If
message_id, ormessage_byteslength is out of range.
- set_relay(enabled) ¶
Enable or disable the serial relay for the module.