I’m fairly new to programming with Arduino and i walk in to an problem.
I want to create a alarm clock by setting the current time + 5 minutes. As long as that exception is true, an output stays high. The alarm clock must be set when a push button is pushed. My idea of coding this:
time_t stoptime = DateTime.now() + 5
(that 5 is the 5 minutes the exception stays true)
if (DateTime.now() < stoptime)
Please help meee!!