Sir,
Actually the data is coming continuously from serial port in a period of 1 second. For that I am using infinite loop. Now, I want user to break that loop by hitting any key from keyboard. I tried for input(), keyboard() etc. but the program wait for that key. But the requirement is like interrupt type. The code is running and the button is in user’s hold. pressing CTRL+C or break will result in loss of variable and data
Attachments:
You must be
logged in to view attached files.