Feb-15-2017, 08:19 AM
(Feb-15-2017, 06:43 AM)trainee1 Wrote:(Feb-14-2017, 04:46 PM)nilamo Wrote: Threads merged. Those of us that are here to help, check all the boards. There's no reason to post in more than one place.With this line of code:
Anyway, how are you reading data? Don't most interfaces just block until there's something to read?
while true:
s = serialport.readline()
which is run on the pi with the python script. A serial connection is between the pi and a desktop. As I type characters on the terminal (Putty) on the desktop, there should be an interrupt to say data is ready or a flag maybe. I dont want always listen to the serial port (Polling).
Start a thread that waits on a read of the serial port.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net