Trust me that has actually happened :') (without the getting it work bit)
Ok but can you just tell me if I'm setting up the Function correctly?
My comment was about your continued used of delay(), not about anything else. As long as you use delay() then you won't achieve this:
I've been researching all the different ways suggested and in trying to interleave the functions.
If you want to do that you have to have a different mindset. At the moment you are trying to get StepStepper to do everything in one go, that's the wrong approach. The tutorials explain it.
You already know how to do this as you do it every day in normal life.
You wouldn’t expect this when you go into a restaurant:
A waiter meets you at the door, takes you to a table, gives you a menu then waits by your table while you decide what to order. The waiter takes your order, goes to the kitchen and waits there while the chef cooks your food. When the food is ready the waiter brings it to your table then waits by your table while you eat it. When you’ve finished eating the waiter takes your plates away and returns to ask if you want anything else. This continues until you leave. No one else gets served. This is how your code is working at the moment.
I’m not going to describe what really happens in a restaurant as you already know. A waiter uses exactly the same system as a state machine to serve people when they need serving and check to see who needs serving next between dealing with customers. You can build functions for the different tasks a waiter does such as:
You call these from loop(); While in loop the waiter checks to see if any tables need attention, and if they do s/he goes to find out what they need. If not, then s/he keeps checking until someone needs something. Computer code should be written along the same principals.
See Demonstration for several things at the same time for how to implement a state machine in software rather than in a restaurant.
Also look at Using millis for timing, which is also relevant as frequently millis timing and a state machine are used together.