Hi, I'm trying to use an arduino sketch I coded as part of a larger program that's based in python. I want to use PySerial to interface with the arduino, and have a dedicated GUI that enables a user to simply click a button, and execute the arduino code, while reading the data from python.
Is this feasible? I'm a bit confused about the nuances of pyserial, and haven't been able to find out if this type of feature is even supported by the serial library.
Your Python program needs to send a message to the Arduino program and the Arduino program needs to know what do do when a message is received. A message could be (ideally should be) as short as a single character.