I have used multiple lights and I need to turn them off when user wishes(like after hh:mm:ss). i have already taken input from user and converted it to millisecond and stored it in a variable. Now all I need is a way to turn off the light after that specified amount of time (millis) stored in a variable. I also need to do it with multiple lights such that when a timer for one light is set and is being monitored to trigger a function, another light can also be turned on by setting its own time and its time being monitored separately for triggering a function to turn it of after the timer runs out. I need it for at least 4 lights. I
Now all I need is a way to turn off the light after that specified amount of time (millis) stored in a variable.
Save the start time from millis() and check whether the timing period has elapsed each time through loop()
I need it for at least 4 lights
This sounds like a job for values being held in arrays.