Input sequence Identification

How can I identify which input came first, second and so on input in arduino?

Save the value of millis() when each input is received. The lowest value saved will be associated with the first input and so on

More details of your question, including your code, will mean that a more detailed answer can be given

Please follow the advice on posting code given in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless

If the code exceeds the 9000 character inline limit then attach it to a post

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.