I
I
Ivan2019-09-22 20:40:07
Python
Ivan, 2019-09-22 20:40:07

How to avoid stopping the program when calling input() in Python 3.7?

I have a Raspberry Pi 3 and an Arduino Uno. I am writing a part of a Python program that is responsible for exchanging data with Arduino via UART via a USB port, and everything would be fine, data is received and transmitted, but not at the same time.
When I call the input() function to enter my message to the microcontroller, the whole program stops, data is no longer received and written to the necessary files.
How to avoid this and make the work asynchronous (well, or whatever it is called)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2019-09-22
@Mixturan

How about google before asking? https://ru.stackoverflow.com/a/788495

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question