Jan-07-2021, 06:18 AM
This is your problem:
You need to read the serial port while simultaneously running root.mainloop(). This means you either need to find a non-blocking way to read the serial port, or you need to read the serial port in a separate process and pass the strings to the GUIO process to be displayed.
I don't know how to do that on Arduino lol!
while 1: arduinoData = ser.readline().decode('ascii') print(arduinoData) ## You will never get here!!! var.set('My Var') root.mainloop()What you are trying to do is actually quite difficult. Perhaps the hardest type of programming.
You need to read the serial port while simultaneously running root.mainloop(). This means you either need to find a non-blocking way to read the serial port, or you need to read the serial port in a separate process and pass the strings to the GUIO process to be displayed.
I don't know how to do that on Arduino lol!