Can someone please help, Im after a simple code to create a time delay relay function.
This is what I'm trying to achieve.
if a pin is set to HIGH
the arduino will count down a pre determined amount of time,
if that time expires it will react, (digitalWrite another pin HIGH)
eg. if (PINA == HIGH)
count down predetermined amount
if it expires
digitalWrite ( PINB, HIGH)
thanks in advance