I have my raspberry pi 3 running a python script that manipulates some strings and according to that they sometimes pipped to minimodem. How can i be sure that the pipped subprocess is finished so I can manipulate a gpio state on or off? Can the subprocess.call function help?
This is the code that I am using currently.
if key_pressed==0 and key!=0: message_string = ''.join(message) print(message_string) p1 = subprocess.Popen(["minimodem" , "--tx" , "300"], stdin=subprocess.PIPE) p1.stdin.write(message_string)