I have connected my Arduino to the USB and I want to read data from it, but also to send commands through serial.
The problem is that it prints to the terminal what the Arduino sends, but not until I send command from the PC. I searched over other posts, and this happens because the input is blocking. I have read many posts on stackoverflow, such as this: link_1
but everything I tried from there, does not work. I found this post: link_2
but I have problem with termios, and as I searched it does not cooperate with windows. Is there any way to make the code work without blocking and waiting from the input to write something? I started learning python programming python a few weeks, so maybe I missing something from code.