Servo control with Interrupt

Hi Guys

I wanna control a Servo with a Switch to turn the Servo Prgramm ON and OFF I wanna do this with Interrupts to stop and start the programm Please don't say i should read in the references for interrupts I understand this, but i don't can create a good sketch which works plese help

did someone have a example code?

Thanks

Rusconichess

Don't use interrupts for switches. It's not what interrupts are for.

I wanna do this with Interrupts to stop and start the programm

Why? There is no reason to use interrupts to read the state of switches.

Please don't say i should read in the references for interrupts

Don't tell us what to do. You DO need to read the material about interrupts since YOU seem determined to misuse them.

did someone have a example code?

Yes, I did,

Have a look at Planning and Implementing a Program

It reads switches without needing interrupts.

…R

Rusconichess: Please don't say i should read in the references for interrupts I understand this, but i don't can create a good sketch which works plese help

Post the sketch you think came closest to working and I will help you get it working.