I have an idea, that I make a nightlight(with photoresistor, and LEDs) and an Arduino Clock without RTC, and the nighlight works from night to morning. The clock part is OK, it’s not accurate yet, but in this case it’s not important.
My main problem with the project, that I cannot make a loop that works from a time to a given time, and inside the loop the tasks run just once.
So I would like to ask some advice for the loop handling.
I put my code here, I know it’s far from good, but after I learn the basic principles, I would like to do a lot of correction:
nightlight2.ino (808 Bytes)