bpod_core.bpod.Input

class bpod_core.bpod.Input

Bases: Channel

Input channel class representing a digital input channel.

__init__(bpod, name, io_key, index) None
Parameters:
Return type:

None

enable(enable) bool

Enable or disable the input channel.

Parameters:

enable (bool) – True to enable the input channel, False to disable.

Returns:

True if the operation was successful, False otherwise.

Return type:

bool

override(state) None

Override the state of the input channel.

Parameters:

state (bool) – The state to set for the input channel.

Return type:

None

read() bool

Read the state of the input channel.

Returns:

True if the input channel is active, False otherwise.

Return type:

bool

property enabled: bool

Check if the input channel is enabled.

Returns:

True if the input channel is enabled, False otherwise.

Return type:

bool