serial Exit

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

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.

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