feature_lsp_com #8
11
main.py
11
main.py
@@ -451,7 +451,16 @@ class ArduinoGUI:
|
||||
self.ser.write(message.encode())
|
||||
while self.ser.out_waiting:
|
||||
pass
|
||||
self.ser.read_all()
|
||||
if command == 'w':
|
||||
self.tare_angle()
|
||||
if command == 'u':
|
||||
time.sleep(5)
|
||||
string = self.ser.read_until(b"u")
|
||||
outCommand = F"u{string}u\n"
|
||||
self.arduino.write(outCommand.encode())
|
||||
time.sleep(0.1)
|
||||
|
||||
self.ser.read_all()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
#self.ser.write(b'Hallo\n')
|
||||
|
||||
Reference in New Issue
Block a user