Quote Originally Posted by camolas View Post
I got 2 problems 1 de led dont turn of afther the periode
Fixed by post above?

and 2 i need the code to do like a cicle and stops when led off and only start again when "switch" 1 is on again.
Ok, so how do you determine if the LED is off?
How do you determine if 'switch 1' is on again?
If you can answer those 2 questions, then you should be able to write your code.