Go Down

Topic: serial Exit (Read 416 times) previous topic - next topic

Rian

how i terminate my continus loop
i want press a button through serial monitor to accept keyboard key to terminate the program if i press "Q"

thanks

PaulS

Quote
i want press a button through serial monitor to accept keyboard key to terminate the program if i press "Q"

Permission granted. Go right ahead.

Graynomad

When you receive the Q do a "while(1);". That will effectively stop your program as the processor will be stuck in an endless loop.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Go Up