button press within a given time-frame determining an action at a specific time

slipstick:
So every day at 2pm an action happens. It could be action A or action B depending on if a button was ever pushed in the previous 24 hours.

So you have an RTC (Real Time Clock). From there it sounds pretty straightforward. Have a flag which is set if the button is pushed. At 2pm perform action A or action B depending on if the flag is set or not. Then immediately unset the flag and start waiting for possible button pushes until 2pm comes round again.

There are code examples in the IDE that cover recognising a button push, moving a servo etc. Which part is causing you problems (apart from the physical/mechanical aspect of making baby chair eggs etc)?

Steve

Thanks for the reply! I have most of the mechanics figured out, was just having a hard time figuring out how to get the button to influence the servos. I know how to make a button do something, or do something with a delay, I just couldn't wrap my head around the code for this particular situation. I'll look into the Real Time Clocks and play around. It really isn't that complicated, I've just been overthinking it and my brain is fried. Thanks again!