Go Down

Topic: serial Exit (Read 443 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy