inkex.ports module

Common access to serial and other computer ports.

class inkex.ports.Serial(port, baud=9600, timeout=0.1, **options)[source]

Bases: object

Attempt to get access to the computer’s serial port.

with Serial(port_name, …) as com:

com.write(…)

Provides access to the debug/testing ports which are pretend ports able to accept the same input but allow for debugging.

static has_serial()[source]

Late importing of pySerial module

static list_ports()[source]

Return a list of available serial ports

set_options(stop=1, size=8, flow=None, parity=None)[source]

Set further options on the serial port