Is it possible to end a program forcefully?

LockDots:

retrolefty:
Any time you want the sketch to just do nothing else forever just add a:

noInterrupts();

while(1) {}




Only a reset or power off/on will restart the sketch.

Lefty

hmm, I think I like this one best so far. Care to explain what it's doing or waiting for? Thanks in advance!

Well the noInterrupts() statement turns off all interrupt sources, so the timer interrupt that works millis() does not function.

The while(1) {} says as long a 1 equals 1 (it does always), do the statements inside the {} continuously, and as it's empty, it will just stay in a tight loop there doing nothing.

Lefty