forked from zietzm/Helmholtz_Test_Bench
restructure to have class for Arduino
This commit is contained in:
Binary file not shown.
+1
-1
@@ -103,6 +103,7 @@ def find_port(baud, timeout):
|
||||
return sr
|
||||
return None
|
||||
|
||||
|
||||
def get_version(sr):
|
||||
cmd_str = build_cmd_str("version")
|
||||
try:
|
||||
@@ -115,7 +116,6 @@ def get_version(sr):
|
||||
|
||||
class Arduino(object):
|
||||
|
||||
|
||||
def __init__(self, baud=115200, port=None, timeout=2, sr=None):
|
||||
"""
|
||||
Initializes serial communication with Arduino if no connection is
|
||||
|
||||
Reference in New Issue
Block a user