arduino interrupt go to new servo position and turn off

How do i code an inturupt so it goes to the start of my void loop and turns off my led

Sorry wrong I just need it to turn servo to new position and turn led off

Jamesmurg:
Sorry wrong I just need it to turn servo to new position and turn led off

Should be fairly simple. You know how to use servo.write() to send a servo to a given position right? You know how to use digitalWrite to set the state of a pin to turn a LED on or off right? If not then you have no business messing around with interrupts yet. You need to learn some basics first.

https://www.arduino.cc/en/Reference/AttachInterrupt