psychos.triggers.BasePort#

class psychos.triggers.BasePort(address, log: bool = True)[source]#

Bases: object

Base class for a port.

__init__(address, log: bool = True)[source]#

Methods

__init__(address[, log])

close()

Close the port connection.

encode(value)

Encode a value to send through the port.

reset()

Reset the port (e.g., set trigger to 0).

send(value)

Send a trigger code through the port.

close()[source]#

Close the port connection.

encode(value)[source]#

Encode a value to send through the port.

reset()[source]#

Reset the port (e.g., set trigger to 0).

send(value)[source]#

Send a trigger code through the port.