Turn LED on with RTC

cattledog:
Please post or attach complete code that you are currently running.

Can you still get serial output from your setup?

If so, I think you want to get debug values for turnOnOff and led_alwaysOn.
Also can you verify that the values for day and hour are correct.

Why are you suspecting the power.?

Serial Monitor is a little bit hard to read because the data are showing really fast but I saw that everything is ok.

I also add piece of code that will reset all variables at 2:00 am. Just in case if for example led_alwaysOn stays ON.

I suspect the power because on sutrday I wanted to turn on led manually but nothing happend. On MEGA I saw that LED is blinking and it receives signal from Remote Controler but LEDs were OFF. Then I pluged in my Laptop and there were ON. I didnt do anything.

I also wanted that LCD had extern power and not from MEGA (because if all LEDs are on the LCD losses brightness) but that didnt work. LCD hat only blinked.

After work Im gonna try what you wrote. It is a litle bit tricky to open the box now and connect MEGA to Laptop :smiley: