bpod_core.bpod.Input

class bpod_core.bpod.Input

Input channel class representing a digital input channel.

__init__(*args, **kwargs)

Input channel class representing a digital input channel.

Parameters:
  • *args – Arguments to be passed to the base class constructor.

  • **kwargs – Arguments to be passed to the base class constructor.

enable(state)

Enable or disable the input channel.

Parameters:

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

Return type:

None

override(state)

Override the state of the input channel.

Parameters:

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

Return type:

None

read()

Read the state of the input channel.

Returns:

True if the input channel is active, False otherwise.

Return type:

bool