Public Member Functions | Public Attributes
segbot_sensors.serial.ArduinoDevice Class Reference

List of all members.

Public Member Functions

def __init__
def close
def ok
def open
def read

Public Attributes

 baud
 dev
 port

Detailed Description

Class for managing the Arduino serial port connection.

Definition at line 48 of file serial.py.


Constructor & Destructor Documentation

def segbot_sensors.serial.ArduinoDevice.__init__ (   self,
  port = '/dev/ttyACM0',
  baud = 115200 
)

Definition at line 51 of file serial.py.


Member Function Documentation

Definition at line 59 of file serial.py.

:returns: ``True`` if Arduino contacted. 

Definition at line 64 of file serial.py.

Open the Arduino serial device interface.

:returns: ``True`` if open succeeds.

Definition at line 68 of file serial.py.

Read a line from the serial port.

:returns: a string containing the next line, maybe empty.

Definition at line 100 of file serial.py.


Member Data Documentation

Definition at line 51 of file serial.py.

Definition at line 51 of file serial.py.

Definition at line 51 of file serial.py.


The documentation for this class was generated from the following file:


segbot_sensors
Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 21:37:13