I am reading serial data in while loop, I want to add something in code that if I press t than something should be print otherwise while loop should work. I tried to use readchar, but it wait for me to press some key, I dont want it to wait. I want while loop to work till I press some key
Raspberry pi 2.7
while True:
    data = s.recv(xxx)
    print(data)
    if (x == t)
        print(Hello)
    else:
        continue
it is waiting if i use read char.
 
     
    