I'm pretty new to the Arduino scene, and my question will likely be solved simply by some more experienced fellows. I'm trying to create a code for a switch/ button that when you press it, it generates an output--- then waits (delays?) and produces another (after that set amount of time) before ending that transfer of information. Can any insight be shed on this? What would that look like? For example, the code that I am currently experimenting with is something like this :
Function1 = 1; // Original output is issued
delay(1000); // Set time delay for the next output
Function2 = 1; // The second output follows suit after the set amount of delay time (only after one press, without a secondary)
This is the gist of the code I am using, but I haven't been able to get it to work.
Thanks so much for your help! Any advice at all would be greatly appreciated.