This class encapsulates management of the serial port that
communicates with the Arduino Firmata It provides a 'futures' interface
to make Pyserial compatible with asyncio
|
__init__(self,
com_port='/dev/ttyACM0',
speed=57600,
sleep_tune=.001)
This is the constructor for the aio serial handler :param com_port:
Com port designator :param speed: baud rate :return: None |
source code
|
|
|
get_serial(self)
This method returns a reference to the serial port in case the user
wants to call pyserial methods directly :return: pyserial instance |
source code
|
|
|
write(self,
data)
This is an asyncio adapted version of pyserial write. |
source code
|
|
|
|
|
read(self)
This is an asyncio adapted version of pyserial read that provides
non-blocking read. |
source code
|
|
|
|