utils.marker.utf8_write

stroop_task.utils.marker.utf8_write(port, data)

Converts integer data into a UTF-8 byte string and writes it to the specified serial port.

Parameters

Name Type Description Default
port serial.Serial The serial port object to which the data will be written. required
data int The integer data to be written to the serial port. required

Returns

Name Type Description
int The number of bytes written to the serial port.