Skip to content

Commit

Permalink
A bit more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb304 committed May 17, 2018
1 parent 24c9f37 commit 2794e88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pistack/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

"""
Interface to control the Pi Stack boards
"""
from pistack import *
6 changes: 6 additions & 0 deletions pistack/comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class Comms(object):
Handle all comms over the serial link
"""
def __init__(self, port_name, baud=_DEFAULT_BAUD, timeout=_DEFAULT_TIMEOUT):
"""
Create the interface for the Pi Stack boards
:param port_name: The serial port to use
:param baud: OPTIONAL: The baud rate to use
:param timeout: OPTIONAL: The timeout to use
"""
self._port_name = port_name
self._baudrate = baud
self._timeout = timeout
Expand Down

0 comments on commit 2794e88

Please sign in to comment.