How to - Turn on LED after 3 hours??

Hi everyone,
I was wondering how i would go about setting the output of one of the pins to HIGH after 3 hours?
Is there a wait function?
Thanks :wink:


int x = 0;
digitalWrite(13, Low)

while (x!= 10800) //180min * 60sec
delay(1000); //wait for one second
digitalWrite(13, High)

There is a delay function.

can delay by itself to 180 minutes?

unsigned long?

I should think so!

About 49 days’ worth.