How to disable toggle buttons at a set time?
Title edited to be less confusing.
Sorry for the confusing title. Basically what I want to do is, I have an STM32F746G-DISCO, I made a screen with 6 toggle buttons, when the toggle buttons are toggled on, the controller should give a trigger as long as the button is turned on, however, I want these buttons to automatically turn off at 8 PM (GMT+3), my main concern is creating a trigger from these buttons (preferably from the Arduino pins) and also keeping track of the time and closing the toggle buttons.
The idea is that each button will be connected to the power source of a machine which will only give power as long as the button turned is on from the microcontroller screen while also turning them off so they don't get turned on outside of work hours, kind of like a switch to turn on a light bulb
