can anyone help me with a method to implement FSM on the Arduino, I've got 4 push buttons that are placed serially.
When the buttons are pressed in the order
*)1,2,3,4 it should denote as forward.
*) 4,3,2,1 it should denote as backward.
I'm using the FSM library that is available on the Arduino playground site.
Thank you in advance.