Try moving the two lines port=... and ser=... outside the while loop i.e. before the while True: line.
The serial port only needs to be defined once.
The serial port only needs to be defined once.
Statistics: Posted by neilgl — Mon Apr 29, 2024 10:15 am