serial
Module¶
The serial interface.
Execute this module to print all serial ports currently available.
-
AYABInterface.serial.
list_serial_port_strings
()[source]¶ Lists serial port names.
Raises: EnvironmentError – On unsupported or unknown platforms Returns: A list of the serial ports available on the system See also
-
AYABInterface.serial.
list_serial_ports
()[source]¶ Return a list of all available serial ports.
Return type: list Returns: a list of serial ports
-
class
AYABInterface.serial.
SerialPort
(port)[source]¶ Bases:
object
A class abstracting the port behavior.
-
__init__
(port)[source]¶ Create a new serial port instance.
Parameters: port¶ (str) – the port to connect to Note
The baud rate is specified in Serial Communication
-
__weakref__
¶ list of weak references to the object (if defined)
-
connect
()[source]¶ Return a connection to this port.
Return type: serial.Serial
-