Quote Originally Posted by Charles Linquis View Post
If you just want 5 days then -

LED = ON

For X = 1 to 7200 (60 minutes/hour X 24 hours/day X 5 days)
PAUSE 60000 ; one minute
Next X

LED = OFF
Hello,
This is the code I've tested with 1 minute and works well, then put 7200 can achieve the 5 days with a good presicion?.

[HTML]led1 var portb.0
x var word

HIGH LED1

Top:

For X = 1 to 1 '(60 minutes/hour X 24 hours/day X 5 days)
PAUSE 60000 ; one minute
Next X

LOW LED1

goto Top[/HTML]


Thank you