diff --git a/read_arduino.pyw b/read_arduino.pyw index 0bfc7c9..a318b39 100644 --- a/read_arduino.pyw +++ b/read_arduino.pyw @@ -8,7 +8,7 @@ import numpy as np # constant settings SENSORS_MAX = 4 # maximum sensor ports -baud = 9600 +baud = 19200 settings = json.load(open('settings.json', 'r')) resolution = settings["resolution"] @@ -23,7 +23,7 @@ if "- No Device -" in port: print("this should generate random values base on # sensors given") exit(0) else: - controller = serial.Serial(port) + controller = serial.Serial(port, baudrate=baud) if np.any(sensor_ports >= SENSORS_MAX): raise ValueError("Port range is 0-3!")