Hi,
I'm fairly new to Arduino and my programming skills are quite basic.
I'm working on the programming side of an art project and am looking for guidance.
The project involves my receiving input from various buttons.
I want to put these button pushes into a queue, in the order in which they are received,
and to have the serial monitor tell me which button is at the front of the queue.
On sending a signal from the serial monitor, I want the program to take the top button out of the queue and move all the other buttons in the queue up one place, and to again tell me which button is at the front of the queue. This all to happen in real time, as further inputs arrive and I process the 'orders'.
I have written the following code, which I think will do the job (Testing starts tomorrow).
What I am interested in at this point is whether there is a more elegant way of getting the same result, but using less code, fewer 'if' statements etc.
All feedback gratefully received,
Apologies for the basic nature of the code,
Thanks
vutton_counter1.pde (12.5 KB)