IF time = 10:AMTHAN LED 1 = high;ELSEIF time = 11AMTHAN LED 2 = high;ELSEIF time = 12: PMTHAN LED 3 = high; etc...Thereafter,IF pushbutton 1 (which is attached to LED 1 -- the 10AM LED) is pressedTHAN println"the 10AM pusbutton was pressed at 10:12";IF pushbutton 2 (which is attached to LED 2 -- the 11AM LED) is pressedTHAN println"the 11AM pushbutton was pressed at 11:24";etc...
if time.now == 8:00 than close switch to LED 1 etc..
if button pushed than send time to serial monitor
I have reworked on the circuit in where I have three time switches and three pushbutton switches.
How would you recommend making the circuit?
I would wire up the push buttons between an input and ground, and enable the internal pull up resistors in software.
I don't know what you want to do with the time switches but one way would be to wire them up just like push buttons and wire the LEDs to three outputs.